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

{{ $area->area_name }}

{{-- ✅ ONLY NON CUSTOM ITEMS --}} @foreach($area->items->where('is_custom', 0) as $item) {{-- Quantity --}} @if($item->category == 'curtain') @elseif($item->category == 'wallpaper') @else @endif @php $price = (float) ($item->variant?->offer_price ?? 0); $qty = (int) ($item->quantity ?? 1); $total = $price * $qty; @endphp @endforeach
Img Item Size Qty Rate Total
@if($item->variant && $item->variant->primaryImage) @endif {{ ucfirst($item->category) }} @if($item->measurement) {{ $item->measurement->width }} x {{ $item->measurement->height }} @else - @endif {{ $item->quantity }} pcs{{ $item->quantity }} rolls{{ $item->quantity }}{{ $price > 0 ? number_format($price, 2) : '-' }} {{ $total > 0 ? number_format($total, 2) : '-' }}
@endforeach
Subtotal : {{ number_format($project->subtotal,2) }}
GST : {{ number_format($project->tax,2) }}
Grand Total : {{ number_format($project->grand_total,2) }}
Terms & Conditions
{!! $project->terms !!}
@endsection