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

{{ $page_title }}

{{ $module_title }}

@php $data = [ [ 'M.DHANASEKAR', '20306253', '588585', '5/31/2025', 'NH', '8', '8', 'Woff', '8', '8', '8', '8', '8', '8', 'Woff', '8', '8', '8', '8', '8', '8', 'Woff', '8', '8', '8', '8', '8', '8', 'Woff', '8', '8', '8', '8', '8', '8', '208', '0', ], [ 'H.FAISAL', '20306254', '588586', '5/31/2025', 'NH', '8', '8', 'Woff', '8', '8', '8', '8', 'LOP', '8', 'Woff', '8', '8', '8', '8', '8', '8', 'Woff', '8', '8', '8', '8', '8', '4/LOP', 'Woff', '8', '8', '8', '8', '8', '8', '196', '0', ], [ 'B.KOKILA', '20306255', '588587', '5/31/2025', 'NH', '8', '4/LOP', 'Woff', '8', '8', '8', '8', 'LOP', '8', 'Woff', '8', '8', '8', '8', '8', '8', 'Woff', '8', '8', '8', '8', 'EL', 'EL', 'Woff', '8', '8', '8', '8', '8', '8', '180', '0', ], [ 'LOGANAAYAKE MANI', '20306256', '588588', '5/31/2025', 'NH', '8', '8', 'Woff', '8', '8', '8', '8', '8', '8', 'Woff', '8', '8', '8', '8', '8', '8', 'Woff', '8', '8', '8', '8', '8', '8', 'Woff', '8', '8', '8', '8', '8', '8', '208', '0', ], [ 'K.S. MASSILAMANI', '20306257', '588589', '5/31/2025', 'NH', '8', '8', 'Woff', '8', '8', '8', '8', '8', '8', 'Woff', '8', '8', '8', '8', '8', '8', 'Woff', '8', '8', '8', '8', '8', '8', 'Woff', '8', '8', '8', '8', '8', '8', '208', '0', ], [ 'SRIDARAN V', '20306258', '588590', '5/31/2025', 'NH', '8', '8', 'Woff', '8', '8', '8', '8', '8', '8', 'Woff', '8', '8', '8', '8', '8', '8', 'Woff', '8', '8', '8', '8', '8', '8', 'Woff', '8', '8', '8', '8', '8', '8', '208', '0', ], [ 'S. SUMATHI', '20306259', '588591', '5/31/2025', 'NH', '8', '8', 'Woff', '8', '8', '8', '8', '8', '8', 'Woff', '8', '8', '8', '8', '8', '8', 'Woff', '8', '8', '8', '8', '8', '8', 'Woff', '8', '8', '8', '8', '8', '8', '208', '0', ], [ 'S.SUNITHA', '20306260', '588592', '5/31/2025', 'NH', '8', '8', 'Woff', '8', '8', '8', '8', '8', '8', 'Woff', '8', '8', '8', '8', '8', '8', 'Woff', '8', '8', '8', '8', '8', '8', 'Woff', '8', '8', '8', '8', '8', '8', '208', '0', ], [ 'E.WILLIAM', '20306261', '588593', '5/31/2025', 'NH', '8', '8', 'Woff', '8', '8', '8', '8', '8', '8', 'Woff', '8', '8', '8', '8', '8', '8', 'Woff', 'LOP', 'LOP', 'LOP', '8', '8', '8', 'Woff', '8', '8', '8', '8', '8', '8', '184', '0', ], [ 'S.R.PRADEEP KUMAR', '20306262', '588594', '5/31/2025', 'NH', '8', '8', 'Woff', '8', '8', '8', '8', '8', '8', 'Woff', '8', '8', '8', '8', '8', '8', 'Woff', '8', '8', '8', '8', '8', '8', 'Woff', '8', '8', '8', '8', '8', '8', '208', '0', ], ]; @endphp @foreach ($data as $index => $row) @foreach ($row as $key => $value) @php $class = ''; $isInput = true; if (str_contains($value, 'Woff')) { $class = 'woff-cell'; $isInput = false; } elseif (str_contains($value, 'LOP')) { $class = 'lop-cell'; $isInput = false; } elseif (in_array($key, [0, 1, 2, 3])) { $isInput = false; // Employee Name, ID, Code, and Date } @endphp @endforeach @endforeach
# EMP Name EMP ID EMP Code Date Days (A01 to A31) HRS WORKED OT WORKED
{{ $index + 1 }} @if ($isInput) @else {{ $value }} @endif
Generate Attendance
@endsection