@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('phone')) {{ $errors->first('phone') }} @endif
@if ($errors->has('url')) {{ $errors->first('url') }} @endif
@if ($errors->has('email')) {{ $errors->first('email') }} @endif
@if ($errors->has('address')) {{ $errors->first('address') }} @endif
{{sc_language_render('product.admin.choose_image')}}
@if ($errors->has('image')) {{ $errors->first('image') }} @endif
@if ($errors->has('sort')) {{ $errors->first('sort') }} @endif
{{-- Custom fields --}} @php $customFields = isset($customFields) ? $customFields : []; $fields = !empty($supplier) ? $supplier->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