@php // dd($load_board, $products); @endphp @extends('master') @section('content') @include('modals.media', [ 'id' => 'productImagesContainer', 'title' => __('label.media.product-images'), 'refs' => [ // RELATED OBJECTS 'combo' => 'productImagesCombo' // CONTAINED FORM SEE ID ABOVE ], 'layout' => [ 'target' => 'media.product-images', 'data' => [ 'config' => true, // RUN SETUPS 'route' => 'courier.products.images.store', 'refs' => [ // RELATED OBJECTS 'modal' => 'productImagesContainerModal', // CONTAINER MODAL ], ], ] ]) @include('modals.media', [ 'id' => 'productDocumentsContainer', 'title' => __('label.media.product-documents'), 'refs' => [ // RELATED OBJECTS 'combo' => 'productDocumentsCombo' // CONTAINED FORM SEE ID ABOVE ], 'layout' => [ 'target' => 'media.product-documents', 'data' => [ 'config' => true, // RUN SETUPS 'route' => 'courier.products.documents.store', 'refs' => [ // RELATED OBJECTS 'modal' => 'productDocumentsContainerModal', // CONTAINER MODAL ], ], ] ]) @include('modals.courier.load-board', [ 'id' => 'loadBoardContainer', 'title' => __('label.title.load-board'), 'refs' => [ // RELATED OBJECTS 'table' => 'loadBoardRecordsTable', // CONTAINED TABLE ], 'layout' => [ 'target' => 'tables.courier.load-board', 'data' => [ 'id' => 'loadBoardRecords', // TABLE ID 'src' => 'courier.products.data', // DATA ROUTE NAME 'resource' => 'products', // ! DB TABLE RESOURCE NAME (RESOURCE ID) ! 'data' => $load_board, 'through' => true, // INDIRECT REDERENCE 'routes' => [ config('const.crud.delete') => Utils::indexRoute('courier.products.delete'), ], 'refs' => [ // RELATED OBJECTS 'table' => 'couriersRecordsTable', // BASE RECORDS TABLE (FOR CONTEXT) 'modal' => 'loadBoardContainerModal', // COMPONENT FORM ], ], ] ])
{{ trans_choice('label.product', 2) }}
@include( 'tables.courier.products', [ 'id' => 'productsRecords', // TABLE ID 'edit' => 'productsEditContainer', // (ID) MODAL EDIT REF 'resource' => 'products', // ! DB TABLE RESOURCE NAME (RESOURCE ID) ! 'data' => $products, 'refs' => [ // RELATED OBJECTS 'categories' => 'categoriesComboContainerModal',// CATEGORIES HANDLER 'images' => 'productImagesMedia', // SEE MEDIA PRODUCT 'loadboard' => 'loadBoardContainerModal', // COURIER LOAD BOARD 'documents' => 'orderDocumentsMedia', // SEE MEDIA PRODUCT ], ])
@stop