@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('code')) {{ $errors->first('code') }} @endif
@if ($errors->has('type')) {{ $errors->first('type') }} @endif
@if ($errors->has('option')) {{ $errors->first('option') }} @endif
@if ($errors->has('default')) {{ $errors->first('default') }} @else {!! sc_language_render('admin.custom_field.default_help') !!} @endif
@if ($errors->has('required')) {{ $errors->first('required') }} @endif
@if ($errors->has('status')) {{ $errors->first('status') }} @endif
@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