@extends(backpack_view('blank')) @php $defaultBreadcrumbs = [ trans('backpack::crud.admin') => url(config('backpack.base.route_prefix'), 'dashboard'), $crud->entity_name_plural => url($crud->route), trans('backpack::crud.add') => 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.add').' '.$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()) && !empty($competition_id)) { $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() !!} {{-- 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' => 'create' ]) @else @include('crud::form_content', [ 'fields' => $crud->fields(), 'action' => 'create' ]) @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
hasUploadFields('create')) enctype="multipart/form-data" @endif > {!! csrf_field() !!} {{-- 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' => 'create' ]) @else @include('crud::form_content', [ 'fields' => $crud->fields(), 'action' => 'create' ]) @endif {{-- This makes sure that all field assets are loaded. --}}
{{ json_encode(Basset::loaded()) }}
@include('crud::inc.form_save_buttons')
@endif
@else @endif @endforeach
@endsection @pushOnce('after_scripts') @endPushOnce