@extends('layouts.user.user') @section('page', 'Dashboard') @section('title', 'Dashboard') @section('content')

Quote Review

@forelse(($final_quotes ?? collect()) as $quote) @php $status = strtolower(trim($quote->status ?? 'pending')); // Project data (optional) $projectName = $quote->quotation->title ?? 'Unnamed Project'; $location = $quote->location ?? 'Not Found'; // Quotation data $estimated = $quote->quotation->estimate_cost ?? 0; // Project final (if you store final in project) $final = $quote->quotation->final_amount ?? $quote->project_cost ?? 0; $isSent = (bool) ($quote->is_sent ?? false); $canApprove = in_array($status, ['pending','hold']); @endphp
{{-- Top Right Status --}} {{ $isSent ? 'Quote sent' : 'Not sent' }} {{-- Project Name --}}
{{ $projectName }}

{{ $location }}

{{-- Quote Values --}}
Estimated Quote
₹ {{ number_format($estimated) }}
Final Quote
₹ {{ number_format($final) }}
{{-- Buttons --}}
View
@csrf
@empty
No quotes found.
@endforelse
@endsection