@php
$date_picker = [
'label' => '日期',
'name' => ['add_'.$field['name'].'_table_date_from', 'add_'.$field['name'].'_table_date_to'],
'default' => [$entry->opendate, $entry->closedate],
'type' => 'date_range',
'date_range_options' => [
'timePicker' => false,
]
];
@endphp
@include("crud::fields.date_range", ['field' => $date_picker])
@php
$datetime_picker_from = [
'label' => '時間',
'name' => 'add_'.$field['name'].'_table_timefrom',
'type' => 'datetime_picker',
'wrapperAttributes' => [
'class' => 'add_'.$field['name'].'_table_timefrom add_sections_table_time'
],
'datetime_picker_options' => [
'format' => 'HH:mm',
],
];
@endphp
@include("crud::fields.datetime_picker", ['field' => $datetime_picker_from])
@php
$datetime_picker_to = [
'label' => '至',
'name' => 'add_'.$field['name'].'_table_timeto',
'type' => 'datetime_picker',
'wrapperAttributes' => [
'class' => 'add_'.$field['name'].'_table_timeto add_sections_table_time'
],
'datetime_picker_options' => [
'format' => 'HH:mm',
],
];
@endphp
@include("crud::fields.datetime_picker", ['field' => $datetime_picker_to])