@extends('layouts.appv2') @section('content')

Working Hours

@if ($message = Session::get('success')) @endif @if ($message = Session::get('error')) @endif @if ($errors->any()) @endif
Manage Working Hours
@php $counter = 1; @endphp @foreach($time as $times) @endforeach
No. Name Start Time End Time Flexibility Action
{{ $times->time_schedule_id }} {{ $times->time_schedule_name }} {{ $times->time_schedule_start }} {{ $times->time_schedule_end }} {{ $times->time_schedule_flex }}
@csrf
Time Shift Schedule
@foreach($slottable as $slottable) @endforeach @foreach (['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'] as $day) @endforeach
DAYTIME {{ \Carbon\Carbon::parse($slottable->start_time)->format('h:i A') }} - {{ \Carbon\Carbon::parse($slottable->end_time)->format('h:i A') }}
{{ $day }} @foreach ($shift1 as $employee) @if ($employee->day === $day) {{ $employee->employee_first_name }}
@endif @endforeach
@foreach ($shift2 as $employee) @if ($employee->day === $day) {{ $employee->employee_first_name }}
@endif @endforeach
@foreach ($shift3 as $employee) @if ($employee->day === $day) {{ $employee->employee_first_name }}
@endif @endforeach
@foreach ($shift4 as $employee) @if ($employee->day === $day) {{ $employee->employee_first_name }}
@endif @endforeach
@foreach ($shift5 as $employee) @if ($employee->day === $day) {{ $employee->employee_first_name }}
@endif @endforeach
@foreach ($shift6 as $employee) @if ($employee->day === $day) {{ $employee->employee_first_name }}
@endif @endforeach
@foreach ($shift7 as $employee) @if ($employee->day === $day) {{ $employee->employee_first_name }}
@endif @endforeach
@endsection