@extends($templatePathAdmin.'layout') @section('main') @php $id = empty($id) ? 0 : $id; @endphp

{!! $title_action !!}

@if ($layout == 'edit') @endif
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if ($errors->has('alias')) {{ $errors->first('alias') }} @endif
@if ($errors->has('url')) {{ $errors->first('url') }} @endif
{{sc_language_render('product.admin.choose_image')}}
@if ($errors->has('image')) {{ $errors->first('image') }} @endif
@if ($errors->has('sort')) {{ $errors->first('sort') }} @endif
@if (sc_check_multi_shop_installed()) {{-- select shop_store --}} @php $listStore = []; if (function_exists('sc_get_list_store_of_brand_detail')) { $oldData = sc_get_list_store_of_brand_detail($brand['id'] ?? ''); } else { $oldData = null; } $shop_store = old('shop_store', $oldData); if(is_array($shop_store)){ foreach($shop_store as $value){ $listStore[] = $value; } } @endphp
@if ($errors->has('shop_store')) {{ $errors->first('shop_store') }} @endif
{{-- //select shop_store --}} @endif
@if ($errors->has('status')) {{ $errors->first('status') }} @endif
{{-- Custom fields --}} @php $customFields = isset($customFields) ? $customFields : []; $fields = !empty($brand) ? $brand->getCustomFields() : []; @endphp @includeIf($templatePathAdmin.'component.render_form_custom_field', ['customFields' => $customFields, 'fields' => $fields]) {{-- //Custom fields --}}
@csrf

{!! $title ?? '' !!}

@if (!empty($removeList)) @endif @foreach ($listTh as $key => $th) @endforeach @foreach ($dataTr as $keyRow => $tr) @if (!empty($removeList)) @endif @foreach ($tr as $key => $trtd) @endforeach @endforeach
{!! $th !!}
{!! $trtd !!}
{!! $resultItems??'' !!}
@endsection @push('styles') {!! $css ?? '' !!} @endpush @push('scripts') {{-- //Pjax --}} {{-- //End pjax --}} {!! $js ?? '' !!} @endpush