@extends('layouts.auth.app') @section('title', 'TCC Reports - ' . ($taxOfficeName ?? 'Detail')) @section('content')
TCC requests for {{ $taxOfficeName ?? 'Tax Office' }}
Tax Office
{{ $taxOfficeName ?? 'N/A' }}
Tax Year
{{ $taxYear > 0 ? $taxYear : 'All Years' }}
Status Filter
@php $statusName = 'All'; foreach($statusList as $status) { if ($status['StatusID'] == $statusFilter) { $statusName = $status['StatusName']; break; } } @endphp{{ $statusName }}
Total Records
{{ number_format(count($detailData)) }}
| Request Ref | Tax Year | Taxpayer Name | Request Date | Status |
|---|---|---|---|---|
| {{ $row->RequestRef ?? 'N/A' }} | {{ $row->TaxYear ?? 'N/A' }} | {{ $row->TaxPayerName ?? 'N/A' }} | @if($row->RequestDate) {{ \Carbon\Carbon::parse($row->RequestDate)->format('d M Y') }} @else N/A @endif | @php $statusClass = 'bg-gray-100 text-gray-800'; $statusText = $row->StatusName ?? 'Unknown'; if (stripos($statusText, 'pending') !== false) { $statusClass = 'bg-yellow-100 text-yellow-800'; } elseif (stripos($statusText, 'issued') !== false || stripos($statusText, 'approved') !== false) { $statusClass = 'bg-green-100 text-green-800'; } elseif (stripos($statusText, 'downloaded') !== false) { $statusClass = 'bg-blue-100 text-blue-800'; } elseif (stripos($statusText, 'revoked') !== false || stripos($statusText, 'rejected') !== false) { $statusClass = 'bg-red-100 text-red-800'; } @endphp {{ $statusText }} |
|
No TCC request details found |
||||