{{-- Search / filter form — keeps current tab --}}
{{-- ── Tab panes ── --}}
{{-- ════ ACTIVE QUOTES ════ --}}
| Quote No |
Client Name |
Factory Name |
Factory Location |
Status |
Estimated Quote |
Action |
@foreach($active as $a)
| {{ strtoupper(substr($a->state_code, 0, 2)) }}-{{ date('y') }}-{{ str_pad($a->id, 3, '0', STR_PAD_LEFT) }} |
{{ $a->name }} |
{{ $a->title ?? 'N/A' }} |
{{ Str::limit($a->location, 20) }} |
{{ $a->status == 'converted' ? 'Active' : ucfirst($a->status) }}
|
@if(!empty($a->estimate_cost))
{{ formatIndianCurrency($a->estimate_cost) }}
@else
N/A
@endif
|
{{-- Pass return_tab so the detail page knows where to go back --}}
View
|
@endforeach
{{-- ════ PENDING QUOTES ════ --}}
| Quote No |
Client Name |
Factory Name |
Factory Location |
Status |
Final Quote Value |
Action |
@foreach($pending as $pd)
| {{ strtoupper(substr($pd->state_code, 0, 2)) }}-{{ date('y') }}-{{ str_pad($pd->id, 3, '0', STR_PAD_LEFT) }} |
{{ $pd->name }} |
{{ $pd->title }} |
{{ $pd->location }} |
Pending
|
@if(!empty($pd->project->project_cost))
{{ formatIndianCurrency($pd->project->project_cost) }}
@else
N/A
@endif
|
View
|
@endforeach
{{-- ════ ACTIVE JOBS (In Progress) ════ --}}
| Quote No |
Client Name |
Factory Location |
Status |
Action |
@foreach($inProgress as $project)
|
@if($project->quotation)
{{ strtoupper(substr($project->quotation->state_code, 0, 2)) }}-{{ date('y') }}-{{ str_pad($project->quotation->id, 3, '0', STR_PAD_LEFT) }}
@else
No Quote Linked
@endif
|
{{ $project->client_name }} |
{{ $project->location }} |
{{ $project->staff->pluck('name')->implode(', ') }} |
In Progress
|
@if($project->quotation_id)
View
Chat
@else
@endif
|
@endforeach
{{-- ════ COMPLETED ════ --}}
| Quote No |
Client Name |
Project Name |
Location |
Start Date |
End Date |
Status |
Team Assigned |
Payment Status |
@foreach($delivered as $d)
| {{ strtoupper(substr($d->state_code, 0, 2)) }}-{{ date('y') }}-{{ str_pad($d->id, 3, '0', STR_PAD_LEFT) }} |
{{ $d->client_name }} |
{{ $d->project_name }} |
{{ $d->location }} |
{{ \Carbon\Carbon::parse($d->start_date)->format('d/m/Y') }} |
{{ \Carbon\Carbon::parse($d->end_date)->format('d/m/Y') }} |
Completed
|
{{ $d->team_assigned }} |
{{ $d->payment_status }} |
@endforeach
{{-- ════ LOST DEALS ════ --}}
| Quote Id |
Client Name |
Location |
Quote Date |
Status |
Reason |
@foreach($lostDeals as $lost)
| #{{ $lost->id }} |
{{ $lost->name }} |
{{ $lost->location }} |
{{ \Carbon\Carbon::parse($lost->quote_date)->format('d/m/Y') }} |
Lost
|
{{ $lost->rejection_reason }} |
@endforeach
{{-- .tab-content --}}
{{-- Pagination --}}
Rows per page: {{ $active->perPage() }}
{{ $active->firstItem() }}–{{ $active->lastItem() }} of {{ $active->total() }}
{{ $active->links('pagination::bootstrap-5') }}