@extends('layouts.app_hr') @section('title', __('hr.edit_schedule')) @section('content')
@csrf @method('PUT') @php $currentDate = \Carbon\Carbon::now()->format('Y-m-d'); @endphp @if($schedules->isEmpty())

{{ __('messages.no_data_found') }}

@else @foreach($schedules as $schedule) @endforeach @endif
{{ __('hr.work_date') }} {{ __('hr.start_time') }} {{ __('hr.end_time') }} {{ __('hr.is_off_day') }}
{{@format_date($schedule->work_date )}} @if($schedule->work_date >= $currentDate) @else @endif @if($schedule->work_date >= $currentDate) @else @endif @if($schedule->work_date >= $currentDate)
@else
@endif
@if($errors->any()) @foreach($errors->all() as $error) toastr.error("{{ $error }}"); @endforeach @endif @endsection @section('javascript') @stop