@extends('layouts.app') @section('content')
| # | Task Title | Checklist | Moulvi | Cleaner | Status | Time | Proof Required | Created At | Actions |
|---|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration }} | {{ $item->task_title }} |
{{ $item->checklist_id }}
{{ optional($item->checklist->mosque)->name ?? '-' }} {{ $itemChecklistDate ? $itemChecklistDate->format('d M Y') : '-' }} |
@if($item->checklist && $item->checklist->mosque && $item->checklist->mosque->moulvi) {{ $item->checklist->mosque->moulvi->name }} @else Not Assigned @endif | @if($item->checklist && $item->checklist->cleaner) {{ $item->checklist->cleaner->name }} @else Not Assigned @endif | {{-- STATUS Column --}}{{ $item->status }} @if(auth()->user()->hasAnyRole(['super admin', 'awqaf admin', 'cleaner'])) @else {{ $item->status === 'COMPLETED' ? 'Completed' : 'Not Started' }} @endif | {{-- TIME Column --}}
{{ $durationMinutes }}
@if(!auth()->user()->hasRole('moulvi'))
@endif
@if($isRunning)
{{ $shiftStartShow }} - {{ $shiftEndShow }}
@else
Not Started
@endif
(Duration: {{ intdiv(max($durationMinutes,0),60) }}h {{ max($durationMinutes,0) % 60 }}m)
Loading...
|
{{-- Proof Required Column --}}
@if(auth()->user()->hasAnyRole(['super admin', 'awqaf admin', 'moulvi'])) @else {{ $item->proof_required ? 'Yes' : 'No' }} @endif | {{ $created ? $created->format('d M Y') : '-' }} |