{{-- ? To set: * required: input_id as string for id tag * date as boolean for show datepicker input * time as boolean for show timepicker input array option: label as string html label_pill as string label_pill_color as string color default = secondary label_pill_attr as string attributes input_name as string if empty = input_id input_class as string for custom css class in input field title as string for tooltip clear_title as string html for tooltip of clear btn value as string for validate input value at start required as boolean default false group_class as string disabled as boolean btn_color as string secondary, primary, light, dark, warnig, danger ? To implement in Blade: * @includeIf('layouts.components.datetimepicker', [ 'input_id' => 'example' ]) --}} @if (isset($input_id)) @php if (!empty($value)) { $get_date = new \Carbon\Carbon($value); $get_date = $get_date->setTimezone('EET'); $date_value = $get_date->format('d.m.Y'); $time_value = $get_date->format('G:i \U\h\r'); if ($time_value === '0:00 Uhr') { $time_value = null; } } @endphp