{!! Form::open(['url' => action('\Modules\Essentials\Http\Controllers\AttendanceController@update', [$attendance->id]), 'method' => 'put', 'id' => 'attendance_form' ]) !!} {!! Form::hidden('employees', $attendance->employee->id, ['id' => 'employees']); !!} {!! Form::hidden('attendance_id', $attendance->id, ['id' => 'attendance_id']); !!}

@lang( 'essentials::lang.edit_attendance' )

@lang('essentials::lang.employees'): {{$attendance->employee->user_full_name}}
{!! Form::label('clock_in_time', __( 'essentials::lang.clock_in_time' ) . ':*') !!}
{!! Form::text('clock_in_time', @format_datetime($attendance->clock_in_time), ['class' => 'form-control', 'placeholder' => __( 'essentials::lang.clock_in_time' ), 'readonly', 'required' ]); !!}
{!! Form::label('clock_out_time', __( 'essentials::lang.clock_out_time' ) . ':') !!}
{!! Form::text('clock_out_time', !empty($attendance->clock_out_time) ? @format_datetime($attendance->clock_out_time) : null, ['class' => 'form-control', 'placeholder' => __( 'essentials::lang.clock_out_time' ), 'readonly' ]); !!}
{!! Form::label('ip_address', __( 'essentials::lang.ip_address' ) . ':') !!} {!! Form::text('ip_address', $attendance->ip_address, ['class' => 'form-control', 'placeholder' => __( 'essentials::lang.ip_address') ]); !!}
{!! Form::label('clock_in_note', __( 'essentials::lang.clock_in_note' ) . ':') !!} {!! Form::textarea('clock_in_note', $attendance->clock_in_note, ['class' => 'form-control', 'placeholder' => __( 'essentials::lang.clock_in_note'), 'rows' => 3 ]); !!}
{!! Form::label('clock_out_note', __( 'essentials::lang.clock_out_note' ) . ':') !!} {!! Form::textarea('clock_out_note', $attendance->clock_out_note, ['class' => 'form-control', 'placeholder' => __( 'essentials::lang.clock_out_note'), 'rows' => 3 ]); !!}
{!! Form::close() !!}