@php // dd($load_board, $products); @endphp @extends('master') @section('content') @include('modals.slider', [ 'id' => 'productImagesContainer2', 'title' => __('Images'), 'buttons' => [ [ 'icon' => 'fa-plus', 'class' => 'btn-default plus', ], [ 'icon' => 'fa-minus', 'class' => 'btn-default minus', ], ], 'layout' => [ 'edit' => true, 'target' => 'show.product-images', 'data' => [ 'id' => 'productImages', // INPUT ID BIND 'data' => null, ], ] ]) @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' => 'store.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' => 'store.products.documents.store', 'refs' => [ // RELATED OBJECTS 'modal' => 'productDocumentsContainerModal', // CONTAINER MODAL ], ], ] ])
{{ trans_choice('label.product', 2) }}
@include( 'tables.store.products', [ 'id' => 'productsRecords', // TABLE ID 'edit' => 'productsEditContainer', // (ID) MODAL EDIT REF 'resource' => 'products', // ! DB TABLE RESOURCE NAME (RESOURCE ID) ! 'data' => $products, 'refs' => [ // RELATED OBJECTS 'images' => 'productImagesMedia', // SEE MEDIA PRODUCT 'documents' => 'orderDocumentsMedia', // SEE MEDIA PRODUCT 'pictures' => 'productImagesContainer2Modal', // SEE MEDIA PRODUCT ], ])
@stop