@php
//($entry->close_date)
use Illuminate\Support\Carbon;
$close_date = new Carbon($entry->close_date);
$compare = Carbon::today()->greaterThanOrEqualTo($close_date);
@endphp
{!! $field['label'] !!}
@include('crud::inc.field_translatable_icon')
@if(is_null($entry->is_goal))
status, \App\Models\ProgrammePlan\ProgrammePlan::STATUS_COMPLETABLE))) disabled @endif
>
@if (isset($field['allows_null']) && $field['allows_null']==true)
-
@endif
@if (count($field['options']))
@foreach ($field['options'] as $key => $value)
@if((old(square_brackets_to_dots($field['name'])) && (
$key == old(square_brackets_to_dots($field['name'])) ||
(is_array(old(square_brackets_to_dots($field['name']))) &&
in_array($key, old(square_brackets_to_dots($field['name'])))))) ||
(null === old(square_brackets_to_dots($field['name'])) &&
((isset($field['value']) && (
$key == $field['value'] || (
is_array($field['value']) &&
in_array($key, $field['value'])
)
)) ||
(!isset($field['value']) && isset($field['default']) &&
($key == $field['default'] || (
is_array($field['default']) &&
in_array($key, $field['default'])
)
)
))
))
{{ $_value }}
@else
{{ $_value }}
@endif
@endforeach
@endif
@else
{{trans('backpack::programme_plan.is_goal.' . $entry->is_goal)}}
@endif
@if($compare && is_null($entry->is_goal) && in_array($entry->status, \App\Models\ProgrammePlan\ProgrammePlan::STATUS_COMPLETABLE))
儲存
@endif
{{-- HINT --}}
@if (isset($field['hint']))
{!! $field['hint'] !!}
@endif
@if ($crud->fieldTypeNotLoaded($field))
@php
$crud->markFieldTypeAsLoaded($field);
@endphp
{{-- FIELD CSS - will be loaded in the after_styles section --}}
@push('crud_fields_styles')