@extends('pdf.layouts.interior') @section('title','Premium Quotation') @section('content')
| Project No: {{ $project->project_number }} | Date: {{ now()->format('d-m-Y') }} |
| Customer Name: {{ $project->customer_name }} | Phone: {{ $project->customer_phone }} |
| Project Type: {{ $project->project_type }} | Completion Date: {{ $project->expected_completion_date }} |
| Sales Person: {{ $project->employee_name }} | Contact: {{ $project->employee_contact }} |
| Address: {{ $project->address }} | |
| Img | Item | Size | Qty | Rate | Total |
|---|---|---|---|---|---|
|
@if($item->variant && $item->variant->primaryImage)
|
{{-- Item Name --}}
@php $displayName = $item->curtain?->productModel?->name ?? ucfirst($item->category); @endphp {{ $displayName }} | {{-- Size --}}@if($item->measurement) {{ number_format($item->measurement->width,2) }} x {{ number_format($item->measurement->height,2) }} @else - @endif | {{-- Quantity --}}@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 | {{-- Rate --}}{{ number_format($item->calculated_rate ?? 0, 2) }} | {{-- Total --}}{{ number_format($item->calculated_total ?? 0, 2) }} |