@extends('master') @section('content') @include('modals.convention-products', [ 'id' => 'conventionProductsContainer', 'title' => __('label.convention.products'), 'refs' => [ // RELATED OBJECTS 'table' => 'conventionProductsRecordsTable', // CONTAINED TABLE 'base-table' => 'conventionsRecordsTable', // BASE RECORDS TABLE ], 'layout' => [ 'target' => 'tables.store.convention-products', 'data' => [ 'id' => 'conventionProductsRecords', // TABLE ID 'src' => 'store.convention.products.data', // DATA ROUTE NAME 'resource' => 'products', // ! DB TABLE RESOURCE NAME (RESOURCE ID) ! 'data' => [], 'through' => true, // INDIRECT REDERENCE 'refs' => [ // RELATED OBJECTS 'table' => 'conventionsRecordsTable', // BASE RECORDS TABLE (FOR CONTEXT) 'modal' => 'conventionProductsContainerModal', // COMPONENT FORM ], ], ] ])
{{ __('label.your-conventions') }}
@include( 'tables.store.conventions', [ 'id' => 'conventionsRecords', // TABLE ID 'edit' => 'conventionsEditContainer', // (ID) MODAL EDIT REF 'resource' => 'conventions', // ! DB TABLE RESOURCE NAME (RESOURCE ID) ! 'method' => config('const.crud.delete'), // RESOURCE METHOD AVAILABLE 'data' => $conventions, 'refs' => [ 'stores' => 'conventionStoresContainerModal',// ORDER PRODUCTS HANDLER 'products' => 'conventionProductsContainerModal',// ORDER PRODUCTS HANDLER ] ])
@stop