@extends('admin.layout.master') @section('content') @include('flash-message')

Dynamic OT Shift

List

Current Date Roster List

@foreach ($current_shift_info as $list) @php $date = carbon()->parse(request('date'))->format('Y-m-d'); $shift_extend = $shift_extends->where('emp_id',$list->emp_id)->where('date',$date)->where('shift_id',$list->shift_id)->first(); @endphp @endforeach
Date Shift Type Extend Hours Action
{{carbon()->parse(request('date'))->format("d-m-Y")}} {{$list->fetch_shift_info_data->name}} {{$list->type== 1 ? 'Exchange' : ($list->type== 2 ? 'Replace':($list->type== 3 ? 'OT': 'Regular'))}} {{$shift_extend ? $shift_extend->extend_hours: null}}
@endsection