@extends('pdf.layouts.interior') @section('title','Premium Quotation') @section('content')
Room Wise Quotation
@foreach($project->areas as $area)

{{ $area->area_name }}

@foreach($area->items as $item) {{-- Image --}} {{-- Item Name --}} {{-- Size --}} {{-- Quantity --}} {{-- Rate --}} {{-- Total --}} @endforeach
Img Item Size Qty Rate Total
@if($item->variant && $item->variant->primaryImage) @endif @php $displayName = $item->curtain?->productModel?->name ?? ucfirst($item->category); @endphp {{ $displayName }} @if($item->measurement) {{ number_format($item->measurement->width,2) }} x {{ number_format($item->measurement->height,2) }} @else - @endif @if(in_array($item->category, ['curtain','blinds']) && isset($item->calculated_qty)) {{ number_format($item->calculated_qty, 2) }} @elseif($item->category == 'wallpaper') {{ $item->quantity }} rolls @else {{ $item->quantity }} @endif {{ number_format($item->calculated_rate ?? 0, 2) }} {{ number_format($item->calculated_total ?? 0, 2) }}
@endforeach @php $subtotal = 0; foreach ($project->areas as $area) { foreach ($area->items as $item) { $subtotal += (float) ($item->calculated_total ?? 0); } } $tax = $subtotal * 0.18; $grandTotal = $subtotal + $tax; @endphp
Subtotal : {{ number_format($subtotal, 2) }}
GST (18%) : {{ number_format($tax, 2) }}
Grand Total : {{ number_format($grandTotal, 2) }}
Terms & Conditions
{!! $project->terms !!}
@endsection