@extends('layouts.user.user') @section('title', 'Active Quotes') @section('page', 'Active Quotes') @section('content')
{{-- Flash messages --}}
@if(session('success')) @endif @if(session('error')) @endif
{{-- PAGE HEADER --}}

Active Quotes

All projects that are currently in progress for your quotations.

{{-- ACTIVE / PENDING PROJECTS --}}

In Progress

@forelse($activeQuote as $project)
{{-- LEFT SIDE --}}
{{ $project->title ?? 'Untitled Project' }}
{{ $project->location ?? 'Location not specified' }}
Quote Date: {{ optional($project->created_at)->format('d-m-Y') ?? 'NA' }}   •   Client: {{ $project->name ?? 'NA' }}
{{ ucfirst($project->status) }}
{{-- RIGHT SIDE --}}
₹ {{ number_format($project->final_quote ?? $project->estimate_cost ?? 0) }}
Quote #{{ $project->id }}
{{-- View project button (optional) --}} View Project
@empty
No pending quotes found.
@endforelse {{-- PAST COMPLETED PROJECTS --}} @if(isset($pastProject))

Past Projects

@forelse($pastProject as $project)
{{-- LEFT SIDE --}}
{{ $project->title ?? 'Untitled Project' }}
{{ $project->location ?? 'Location not specified' }}
Completed On: {{ optional($project->updated_at ?? $project->created_at)->format('d-m-Y') ?? 'NA' }}   •   Client: {{ $project->name ?? 'NA' }}
{{ ucfirst($project->status) }}
{{-- RIGHT SIDE --}}
₹ {{ number_format($project->final_quote ?? $project->estimate_cost ?? 0) }}
Quote #{{ $project->id }}
View Details
@empty
No completed projects yet.
@endforelse @endif
@endsection