@php use App\Models\Manufacture\Manufacture; use App\Models\Manufacture\ManufacturerBenefits; @endphp @php /** @var Manufacture $manufacture */@endphp
@include('admin::pages.components.upload.single', [ 'modelInstance' => Manufacture::class, 'modelID' => $manufacture->id, 'attachmentKey' => Manufacture::ATTACH_LOGO_KEY ])
@include('admin::pages.components.upload.single', [ 'modelInstance' => Manufacture::class, 'modelID' => $manufacture->id, 'attachmentKey' => Manufacture::ATTACH_BANNER_KEY ])
@csrf @method('PUT') @include('admin::pages.components.form.tabs')
@foreach(LaravelLocalization::getSupportedLocales() as $iso => $locale)
@include('admin::pages.components.form.ckeditor', [ 'title' => 'Description: ' . strtoupper($iso), 'id' => 'description_'. $iso, 'name' => 'description['. $iso .']', 'value' => old('description.' . $iso, $manufacture->getTranslation('description', $iso)), 'language' => $iso, ])
@include('admin::pages.components.form.meta-tags', ['iso' => $iso, 'locale' => $locale, 'model' => $manufacture])
@endforeach
Here, you can select property(-ies) that will be displayed on the catalog page in filters section.
@include('admin::pages.components.flash-messages')
@if (count($manufacture->manufacturerBenefits)) @foreach($manufacture->manufacturerBenefits as $index => $benefit)
@include('admin::pages.components.upload.single', [ 'modelInstance' => ManufacturerBenefits::class, 'modelID' => $benefit->id, 'attachmentKey' => ManufacturerBenefits::ATTACH_BENEFIT_ICON_KEY, ])
@endforeach @endif
@csrf @method('PUT') @include('admin::pages.components.form.tabs', ['class' => 'benefit'])
@foreach(LaravelLocalization::getSupportedLocales() as $iso => $locale)
@for($index = 0; $index < 4; $index++) @php $key = $index + 1 @endphp
@endfor @for($index = 0; $index < 4; $index++) @php $key = $index + 1 @endphp
@endfor
@endforeach
@for($index = 0; $index < 4; $index++) @php $key = $index + 1 @endphp
@include('admin::pages.components.is-active', [ 'title' => 'Is active ' . $key, 'name' => 'benefits['.$key.'][is_active]', 'isActive' => old('benefits.'.$key.'.is_active' , $manufacture['manufacturerBenefits'][$index]['is_active']) ])
@endfor
@include('admin::pages.components.flash-messages')
@push('script') @endpush