@extends('layouts.app') @section('content')
| # | Mosque | Date | Moulvi | Cleaner | Shift Time | Status | Created At | Actions |
|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $checklist->mosque->name ?? '-' }} | {{-- ✅ IMPORTANT: put raw date in hidden span so filter works --}}{{ $dateRaw }} {{ $dateShow }} | @if($checklist->mosque && $checklist->mosque->moulvi) {{ $checklist->mosque->moulvi->name }} @else Not Assigned @endif | @if($checklist->cleaner) {{ $checklist->cleaner->name }} @else Not Assigned @endif |
@if($checklist->shift_started_at && $checklist->shift_ended_at)
{{ \Carbon\Carbon::parse($checklist->shift_started_at)->format('h:i A') }} -
{{ \Carbon\Carbon::parse($checklist->shift_ended_at)->format('h:i A') }}
@php
$duration = \Carbon\Carbon::parse($checklist->shift_started_at)
->diff(\Carbon\Carbon::parse($checklist->shift_ended_at));
@endphp
@else Not Set @endif |
@php $statusColors = [ 'NOT_STARTED' => 'secondary', 'IN_PROGRESS' => 'warning', 'SUBMITTED' => 'info', 'PENDING_VERIFICATION' => 'primary', 'VERIFIED' => 'success', 'REWORK_REQUIRED' => 'danger' ]; @endphp {{ $statuses[$checklist->status] ?? $checklist->status }} | {{ $createdShow }} |