@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.media', [ 'id' => 'orderDocumentsContainer', 'title' => __('label.media.order-documents'), 'refs' => [ // RELATED OBJECTS 'combo' => 'orderDocumentsCombo' // CONTAINED FORM SEE ID ABOVE ], 'layout' => [ 'target' => 'media.order-documents', 'data' => [ 'config' => true, // RUN SETUPS 'route' => 'courier.delivery.documents.store', 'refs' => [ // RELATED OBJECTS 'modal' => 'orderDocumentsContainerModal', // CONTAINER MODAL ], ], ] ]) @include('modals.order-products', [ 'id' => 'orderProductsContainer', 'title' => __('label.order.products'), 'refs' => [ // RELATED OBJECTS 'table' => 'orderProductsRecordsTable', // CONTAINED TABLE 'base-table' => 'deliveriesRecordsTable', // BASE RECORDS TABLE ], 'layout' => [ 'target' => 'tables.courier.order-products', 'data' => [ 'id' => 'orderProductsRecords', // TABLE ID 'src' => 'courier.order.products.data', // DATA ROUTE NAME 'resource' => 'products', // ! DB TABLE RESOURCE NAME (RESOURCE ID) ! 'data' => [], 'through' => true, // INDIRECT REDERENCE 'routes' => [ config('const.crud.delete') => Utils::indexRoute('courier.order.products.delete'), ], 'refs' => [ // RELATED OBJECTS 'table' => 'deliveriesRecordsTable', // BASE RECORDS TABLE (FOR CONTEXT) 'modal' => 'orderProductsContainerModal', // COMPONENT FORM 'new-product' => 'productsAddContainerModal', // NEW PAYMENT MODAL ], ], ] ]) @include('modals.products', [ 'id' => 'productsAddContainer', 'title' => __('label.add.product'), 'refs' => [ // RELATED OBJECTS 'form' => 'productsAddForm', // CONTAINED FORM SEE ID ABOVE ], 'layout' => [ 'target' => 'forms.courier.order-products', 'data' => [ 'id' => 'productsAdd', // INPUT ID BIND //'method' => config('const.crud.create'), // REQUIRED FORM METHOD 'table' => 'productsRecords', // RELATED TABLE ID 'resource' => 'products', // ! DB TABLE RESOURCE NAME (RESOURCE ID) ! 'routes' => [ config('const.crud.create') => Utils::indexRoute('courier.order.products.store'), ], 'refs' => [ // RELATED OBJECTS 'modal' => 'productsAddContainerModal', // CONTAINER MODAL 'table' => 'orderProductsRecordsTable', // RECORDS TABLE TO UPDATE ], ], ] ]) @include('modals.order-payments', [ 'id' => 'orderPaymentsContainer', 'title' => __('label.order.payments'), 'refs' => [ // RELATED OBJECTS 'table' => 'orderPaymentsRecordsTable', // CONTAINED TABLE 'base-table' => 'deliveriesRecordsTable', // BASE RECORDS TABLE ], 'layout' => [ 'target' => 'tables.courier.order-payments', 'data' => [ 'id' => 'orderPaymentsRecords', // TABLE ID 'src' => 'courier.order.payments.data', // DATA ROUTE NAME 'resource' => 'payments', // ! DB TABLE RESOURCE NAME (RESOURCE ID) ! 'data' => [], 'through' => true, // INDIRECT REDERENCE 'refs' => [ // RELATED OBJECTS 'table' => 'deliveriesRecordsTable', // BASE RECORDS TABLE (FOR CONTEXT) 'modal' => 'orderPaymentsContainerModal', // COMPONENT FORM 'new-payment' => 'paymentsAddContainerModal', // NEW PAYMENT MODAL ], ], ] ]) @include('modals.payments', [ 'id' => 'paymentsAddContainer', 'title' => __('label.new.payment'), 'refs' => [ // RELATED OBJECTS 'form' => 'paymentsAddForm', // CONTAINED FORM SEE ID ABOVE ], 'layout' => [ 'target' => 'forms.payments', 'data' => [ 'id' => 'paymentsAdd', // INPUT ID BIND //'method' => config('const.crud.create'), // REQUIRED FORM METHOD 'table' => 'paymentsRecords', // RELATED TABLE ID 'resource' => 'payments', // ! DB TABLE RESOURCE NAME (RESOURCE ID) ! 'routes' => [ 'orders-list' => 'courier.orders.list', config('const.crud.create') => Utils::indexRoute('courier.payments.store'), ], 'refs' => [ // RELATED OBJECTS 'modal' => 'paymentsAddContainerModal', // CONTAINER MODAL 'table' => 'orderPaymentsRecordsTable', // RECORDS TABLE TO UPDATE ], ], ] ]) @include('modals.deliveries', [ 'id' => 'deliveriesEditContainer', 'title' => __('label.edit.delivery'), 'refs' => [ // RELATED OBJECTS 'form' => 'deliveriesEditForm' // CONTAINED FORM SEE ID ABOVE ], 'layout' => [ 'edit' => true, 'target' => 'forms.courier.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 ], ], ] ])