@extends('layouts.adminLayout.dashboardLayout') @section('styles') @endsection @section('content')
{{ Breadcrumbs::render('UpdateShiftRemuneration') }}

{{ $title ?? 'Update Shiftwise Duty Data' }}

Back
@csrf
@error('CenterNo')
{{ $message }}
@enderror
@error('CityCode')
{{ $message }}
@enderror
@error('TCCode')
{{ $message }}
@enderror
Select Daywise Shifts
@php // Extract only non-empty Date_ values // $shiftKeys = []; // for ($i = 1; $i <= 12; $i++) { // $shiftKey = "D".$i."S".$i; // if (!empty($examData->$shiftKey)) { // $shiftKeys[$shiftKey] =$examData->$shiftKey; // Convert to dd-mm-yyyy format // } // } // prd($shiftKeys); @endphp @for ($day = 1; $day <= count($shiftDateCount); $day++) @php $dateKey = "Date_" . $day; @endphp
{{-- --}}
@php //$shiftKeys = []; // for ($i = 1; $i <= count($shiftDateCount); $i++) { // for($j =1 ;$j <=4 ;$j++){ // $shiftKey = "D".$i."S".$j; // if (!empty($examData->$shiftKey)) { // $shiftKeys[$shiftKey] =$examData->$shiftKey; // } // } // } // prd($examData->DutyDay['D'.$day]); @endphp @foreach ($examData->DutyDay['D'.$day] as $shiftKey => $shiftValue) @php //echo 'D'.$day.$shiftKey ;die; $shiftChecked = $examData->{'D'.$day.$shiftKey} == 1; @endphp
@error('ShiftWise[{{ $dayKey.$shiftKey }}]')
{{ $message }}
@enderror
@endforeach

@endfor
@endsection @section('script') @endsection