@extends('app-new') @push('head-script') @endpush @push('content-header') @endpush @section('content') {!! Form::model($shift, ['method' => isset($shift) && $shift->id ? 'put' : 'post', 'files' => 'true']) !!}
{{ trans('master/master.shift_details') }}
{{ trans('master/master.enter_shift_details') }}
{!! Form::text('name', isset($shift) && $shift->name ? $shift->name : old('name'), [ 'class' => 'form-control', 'id' => 'name', 'placeholder' => 'Enter Shift Name', ]) !!} {!! $errors->first( 'name', ' ', ) !!}
{!! Form::time('start_time', isset($shift) && $shift->start_time ? $shift->start_time : old('start_time'), [ 'class' => 'form-control', 'id' => 'start_time', ]) !!} {!! $errors->first('start_time', '') !!}
{!! Form::time('end_time', isset($shift) && $shift->end_time ? $shift->end_time : old('end_time'), [ 'class' => 'form-control', 'id' => 'end_time', ]) !!} {!! $errors->first('end_time', '') !!}
{!! $errors->first('notify_alert', '') !!}
{!! $errors->first('missed_alert', '') !!}
{!! $errors->first('in_buffer', '') !!}
{!! $errors->first('out_buffer', '') !!}
{!! $errors->first('allowed_days', '') !!}
is_night) || old('is_night') == 1) checked @endif>
is_auto_shift) || old('is_auto_shift') == 1) checked @endif>
{{trans('master/master.auto_shift_checkin_range')}}
{!! Form::time('auto_shift_start_time', isset($shift) && $shift->auto_shift_start_time ? $shift->auto_shift_start_time : old('auto_shift_start_time'), ['class' => 'form-control', 'id' => 'auto_shift_start_time']) !!} {!! $errors->first('auto_shift_start_time', '')!!}
{!! Form::time('auto_shift_end_time', isset($shift) && $shift->auto_shift_end_time ? $shift->auto_shift_end_time : old('auto_shift_end_time'), ['class' => 'form-control', 'id' => 'auto_shift_end_time']) !!} {!! $errors->first('auto_shift_end_time', '')!!}
@php $data = isset($shift->breaks) && $shift->breaks ? $shift->breaks : []; $breaks = old('breaks', $data ?? []); @endphp @if (!empty($breaks)) @foreach ($breaks as $key => $break) @if ($key == 0) @else @endif @endforeach @else @endif
{!! Form::close() !!} @endsection @push('footer-script') @endpush