{{ html()->label('Title')->class('form-label') }} {{ html()->text('title')->class('form-control')->placeholder('Title')->required() }} {{ html()->div('Please Enter Title')->class('invalid-feedback') }}
{{ html()->label('Product')->class('form-label') }} {{ html()->select('product_id', $products)->class('form-control select2')->placeholder('Select Product')->required() }} {{ html()->div('Please Select Product')->class('invalid-feedback') }}
{{ html()->label('Category')->class('form-label') }} {{ html()->select('category_id', $categories)->class('form-control select2')->placeholder('Select Category') }} {{ html()->div('Please Select Category')->class('invalid-feedback') }}
{{ html()->label('Caption')->class('form-label') }} {{ html()->textarea('caption')->class('form-control ckeditor-classic') }}
Publish
@php $filteredStatus = array_filter( $status, function ($key) { return $key == 11; // Only include 'Draft' }, ARRAY_FILTER_USE_KEY, ); @endphp
{{ html()->label('Status')->class('form-label') }} {{ html()->select('status', $filteredStatus)->class('form-control select2') }}
Document
{{ html()->label('Image')->class('form-label visually-hidden') }} {{ html()->file('creative')->class('form-control dropify')->attributes([ 'data-default-file' => $editable ? asset('storage/' . $content?->creative) : null, 'data-height' => 200, ]) }}
@push('js') @endpush