@extends(backpack_view('blank')) @php $defaultBreadcrumbs = [ trans('backpack::crud.admin') => backpack_url('dashboard'), $crud->entity_name_plural => url($crud->route), trans('backpack::crud.edit') => false, ]; // if breadcrumbs aren't defined in the CrudController, use the default breadcrumbs $breadcrumbs = $breadcrumbs ?? $defaultBreadcrumbs; @endphp @section('header')

{!! $crud->getHeading() ?? $crud->entity_name_plural !!}

{!! $crud->getSubheading() ?? trans('backpack::crud.edit').' '.$crud->entity_name !!}.

@if ($crud->hasAccess('list'))

{{ trans('backpack::crud.back_to_all') }} {{ $crud->entity_name_plural }}

@endif
@endsection @section('content')
{{-- Default box --}} @include('crud::inc.grouped_errors')
@foreach(App\Enums\ApplicationFormEnum::values() as $appicationForm) @php if(!in_array($appicationForm, App\Enums\ApplicationFormEnum::ignores())) { $model = ucfirst($appicationForm); if($appicationForm != 'economicdevelopment') { $application = App\Helpers\Competition::application($competition_id, "App\Models\\$model"); }else { $application = App\Helpers\Competition::application($competition_id, "App\Models\EconomicDevelopment"); } } @endphp @if($appicationForm == $entity)

{{constant("App\Enums\ApplicationFormEnum::$appicationForm")->label()}}

@if(!empty($simple_file))

សូមទាញយកឯកសារដើម្បីបំពេញ រួចភ្ជាប់ជាមួយទម្រង់បែបបទនេះ ។

@endif @if(!empty($indicatorBasics))
@foreach($indicatorBasics as $basic)
@if(!empty($indicatorDetails) && $indicator_basic_id == $basic->id)

{{$basic->title}}

@foreach($indicatorDetails as $indicatorDetail) @php $indicatorReference = App\Models\IndicatorReference::where('indicator_basic_id', $basic->id) ->where('indicator_detail_id', $indicatorDetail->id) ->first(); @endphp @if($indicatorDetail->id == $indicator_detail_id)

{{$indicatorDetail->title}}

hasUploadFields('create')) enctype="multipart/form-data" @endif > {!! csrf_field() !!} {!! method_field('PUT') !!} {{-- load the view from the application if it exists, otherwise load the one in the package --}} @if(view()->exists('vendor.backpack.crud.form_content')) @include('vendor.backpack.crud.form_content', [ 'fields' => $crud->fields(), 'action' => 'edit' ]) @else @include('crud::form_content', [ 'fields' => $crud->fields(), 'action' => 'edit' ]) @endif {{-- This makes sure that all field assets are loaded. --}}
{{ json_encode(Basset::loaded()) }}
@include('crud::inc.form_save_buttons')
@else

@if(!empty($indicator_detail_id)) {{$indicatorDetail->title}} @else {{$indicatorDetail->title}} @endif

@endif @endforeach
@else

{{$basic->title}}

@endif
@endforeach
@else
{{-- Default box --}}
@if ($crud->model->translationEnabled())
{{-- Change translation button group --}}
@endif @if($crud->tabsEnabled() && count($crud->getUniqueTabNames('columns'))) @include('crud::inc.show_tabbed_table') @else
@include('crud::inc.show_table', ['columns' => $crud->columns()])
@endif
@if($entity == 'general')

មានព្រំប្រទល់

@php $generalBorders = $entry?->generalBorders; @endphp @if(!empty($generalBorders)) @foreach($generalBorders as $generalBorder) @endforeach @endif
{{trans('application.border_label')}} {{trans('application.border')}} {{trans('application.entrance')}}
{{trans("common.border.$generalBorder->border")}} {{$generalBorder->title}} {{$generalBorder->entrance}}
@php $descriptions = json_decode($generalBorder->description); @endphp @foreach($descriptions as $description) {!! $description->entrance !!} @endforeach

ការទទួលស្គាល់ ឬបណ្ណសរសើរផ្សេងៗ

@php $generalAppreciates = $entry?->generalApreciates; @endphp @if(!empty($generalAppreciates)) @foreach($generalAppreciates as $generalAppreciate) @endforeach @endif
{{trans('application.border_label')}} {{trans('application.border')}} {{trans('application.entrance')}}
{{$generalAppreciate->title}} {{$generalAppreciate->year}} {{trans("common.$generalAppreciate->type")}}
@endif @if($entity == 'map')

ផែនទីសំគាល់ដែនរដ្ឋបាលគ្រប់គ្រងរបស់ក្រុង/ខណ្ឌបេក្ខភាព

@php $mapDetails = $entry?->details; @endphp @if(!empty($mapDetails)) @foreach($mapDetails as $mapDetail) @endforeach @endif
{{trans('common.title')}} {{trans('common.attachment')}}
{{$mapDetail->title}} មើលឯកសារ
@endif @if($entity == 'refphoto')

រូបថតដែលពាក់ព័ន្ធនឹងសូចនាករ និងលក្ខណវិនិច្ឆ័យ

@php $refphotoItems = $entry?->items; @endphp @if(!empty($refphotoItems)) @foreach($refphotoItems as $refphotoItem) @endforeach @endif
{{trans('common.place')}} {{trans('common.date_photo')}} {{trans('common.place_photo')}}
{{$refphotoItem->place}} {{date('d-m-Y', strtotime($refphotoItem->date))}} មើលឯកសារ
@endif @endif
@else @endif @endforeach
@endsection