@extends('master') @section('content') @include('modals.store-account', [ 'id' => 'storeAccountContainer', 'title' => __('Store Account'), 'layout' => [ 'target' => 'show.store-account', 'data' => null, ] ]) @include('modals.store-stats', [ 'id' => 'storeStatsContainer', 'title' => __('Store Stats'), 'layout' => [ 'target' => 'show.store-stats', 'data' => null, ] ]) @include('modals.deliveries', [ 'id' => 'deliveriesEditContainer', 'title' => __('label.edit.delivery'), 'refs' => [ // RELATED OBJECTS 'form' => 'deliveriesEditForm' // CONTAINED FORM SEE ID ABOVE ], 'layout' => [ 'edit' => true, 'target' => 'forms.deliveries', 'data' => [ 'id' => 'deliveriesEdit', // INPUT ID BIND 'method' => config('const.crud.update'), // REQUIRED FORM METHOD 'resource' => 'deliveries', // ! DB TABLE RESOURCE NAME (RESOURCE ID) ! 'refs' => [ // RELATED OBJECTS 'modal' => 'deliveriesEditContainerModal', // CONTAINER MODAL 'table' => 'deliveriesRecordsTable', 'couriers' => 'couriersComboContainerModal' // COURIERS HANDLER // RECORDS TABLE ], ], ] ]) @include('modals.couriers', [ 'id' => 'couriersComboContainer', 'type' => 'combo', 'title' => [ 'ins' => __('label.new.courier'), 'edit' => __('label.edit.courier'), ], 'refs' => [ // RELATED OBJECTS 'form' => 'couriersComboForm', // CONTAINED FORM SEE ID ABOVE 'table' => 'deliveriesRecordsTable', // RECORDS TABLE ], 'layout' => [ 'target' => 'forms.couriers', 'data' => [ 'id' => 'couriersCombo', // INPUT ID BIND 'resource' => 'couriers', // ! DB TABLE RESOURCE NAME (RESOURCE ID) ! 'method' => config('const.crud.combo'), // REQUIRED FORM METHOD // DEFINE EXPLICIT COMBO ACTIONS 'refs' => [ // RELATED OBJECTS 'modal' => 'couriersComboContainerModal', // CONTAINER MODAL ], ], ] ])
{{ trans_choice('label.delivery', 2) }}
@include( 'tables.archive.deliveries', [ 'id' => 'deliveriesRecords', // TABLE ID 'edit' => 'deliveriesEditContainer', // (ID) MODAL EDIT REF 'resource' => 'deliveries', // ! DB TABLE RESOURCE NAME (RESOURCE ID) ! 'method' => config('const.crud.delete'), // RESOURCE METHOD AVAILABLE 'data' => $deliveries, 'refs' => [ // RELATED OBJECTS 'couriers' => 'couriersComboContainerModal',// COURIERS HANDLER 'account' => 'storeAccountContainerModal', // ACCOUNT SHOW MODAL HANDLER 'stats' => 'storeStatsContainerModal' // STATS SHOW MODAL HANDLER ], ])
@stop