@extends('customer.layouts.app') @section('title', 'Quotation Details') @section('content')
Quotation details

{{ $quotation->quotation_number }}

Issued {{ \Carbon\Carbon::parse($quotation->quotation_date)->format('d M Y') }}

Back
@if($errors->any())
{{ $errors->first() }}
@endif
Status{{ $quotation->status }}
Valid until{{ $quotation->valid_until ? \Carbon\Carbon::parse($quotation->valid_until)->format('d M Y') : '-' }}
Grand total₹{{ number_format($quotation->total_amount, 2) }}

Service details

@foreach($quotation->items as $item) @endforeach
#ServiceDescriptionQtyRateTotal
{{ $loop->iteration }}{{ $item->service_name }}{{ $item->description ?: '-' }}{{ $item->quantity }}₹{{ number_format($item->unit_price, 2) }}₹{{ number_format($item->total, 2) }}
Subtotal₹{{ number_format($quotation->subtotal, 2) }}
Discount- ₹{{ number_format($quotation->discount, 2) }}
GST ({{ $quotation->gst_percent }}%)₹{{ number_format($quotation->gst_amount, 2) }}
Grand total₹{{ number_format($quotation->total_amount, 2) }}
@if($quotation->remarks)
Remarks

{{ $quotation->remarks }}

@endif
@if($quotation->status === 'Sent')
Review this quotationApprove it to continue directly to service booking, or reject it if you do not wish to proceed.
@csrf
@csrf
@elseif($quotation->status === 'Approved' && !$quotation->serviceBooking)
Ready to schedule this service?Select your preferred service date and upload relevant photos.
Book this service
@elseif($quotation->serviceBooking)
This quotation is already bookedView its current service status.
View booking
@endif @endsection