@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 ], ], ] ]) @include('components.tabs', [ 'active' => 0, 'tabs' => [ [ 'title' => trans_choice('label.delivery', 2), 'portlet' => [ 'icon' => 'fa fa-bars', 'title' => __('label.records.delivery'), 'reload' => true ], 'layout' => [ 'target' => 'tables.deliveries', 'data' => [ '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 ], ], ] ], [ 'title' => __('label.new.delivery'), 'portlet' => [ 'icon' => 'fa fa-bars', 'title' => __('label.content.delivery'), ], 'layout' => [ 'target' => 'forms.deliveries', 'data' => [ 'id' => 'deliveriesInput', // FORM ID 'static' => '0', // NOT DINAMIC JUST ALWAYS INS 'resource' => 'deliveries', // ! DB TABLE RESOURCE NAME (RESOURCE ID) ! 'refs' => [ // RELATED OBJECTS 'table' => 'deliveriesRecordsTable', // RECORDS TABLE 'couriers' => 'couriersComboContainerModal' // CATEGORIES HANDLER ], ], ] ] ], ]) @stop