Worker Activity ( Howrah Municipal Corp. )
{{$totalActivity}}
Total Activity
{{$todayActivity}}
Today Activity
Activity List
| SL. No. | Date | Block Supervisor Name | VAT/GVP Assigned | Sessions (In / Out) | VAT/GVP Visited |
|---|---|---|---|---|---|
| {{ $sl++ }} | {{ \Carbon\Carbon::parse($date)->format('d/m/Y') }} | {{-- Supervisor --}}{{ $row['supervisor'] }} | {{-- Assigned --}}@if(count($row['assigned'])) @else — @endif | {{-- Sessions --}}@if($row['sessions'] > 0) @else No sessions @endif | {{-- Visited --}}@if(count($row['visited'])) @foreach($row['visited'] as $key => $visited) @php [$place, $time] = explode(' @ ', $visited); $imagePath = $row['capturedImages'][$key] ?? null; $base64 = null; if ($imagePath != null && !empty(Storage::disk('hmc')->exists($imagePath))) { $imageContent = Storage::disk('hmc')->get($imagePath); $mimeType = Storage::disk('hmc')->mimeType($imagePath); $base64 = 'data:' . $mimeType . ';base64,' . base64_encode($imageContent); } @endphp @if($base64) @endif @endforeach @else No visit yet @endif |