{{ $project->project_name }} {{ $project->project_number }}
Customer : {{ $project->customer_name }}
Phone : {{ $project->customer_phone }}
Address : {{ $project->address }}
Project Type : {{ $project->project_type ?? '-' }}
Expected Completion : {{ $project->expected_completion_date ? \Carbon\Carbon::parse($project->expected_completion_date)->format('d M Y') : '-' }}
Status : {{ ucfirst($project->status) }}
Employee : {{ $project->employee_name ?? '-' }}
Contact : {{ $project->employee_contact ?? '-' }}
@if($project->creator) @php $creator = $project->creator; $company = null; if(in_array($creator->user_type,['architect_staff','dealer_staff'])){ $company = $creator->manager?->businessProfile; }else{ $company = $creator->businessProfile; } @endphpCreated By : {{ $creator->name ?? '-' }} {{ $creator->role->name ?? '' }}
@if($company)Company : {{ $company->legal_shop_name ?? '-' }} , Type : {{ ucfirst($company->business_type ?? '-') }} , Phone : {{ $company->shop_mobile_number ?? '-' }} , Address : {{ $company->legal_shop_address ?? '-' }}
@endif @endif {{-- PDF Buttons --}}Project Location
Subtotal
₹ {{ number_format($project->subtotal, 2) }}
GST (18%)
₹ {{ number_format($project->tax, 2) }}
Grand Total
₹ {{ number_format($project->grand_total, 2) }}
Total Areas
{{ $project->areas->count() }}
Total Items
{{ $project->areas->sum(fn($area) => $area->items->count()) }}
Area: {{ $area->name }} @if($area->room) (Room: {{ $area->room->name }}) @endif
| # | Image | Product | Type | Unit | Qty | Size | Room | Item | Catalog | Serial | Details | Description |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $index + 1 }} | {{-- IMAGE --}}
@if($item->is_custom == 0 && $item->variant?->primaryImage?->image_path)
|
{{-- PRODUCT --}}
{{ $item->product->name ?? 'Custom Item' }} | {{-- TYPE --}}@if($item->is_custom) Custom @else Standard @endif | {{-- UNIT --}}{{ $unit }} | {{-- QTY --}}{{ $qty > 0 ? number_format($qty,2) : '-' }} | {{-- SIZE --}}@if($item->measurement) {{ $item->measurement->width ?? '-' }} x {{ $item->measurement->height ?? '-' }} {{ $item->measurement->unit ?? '' }} @else - @endif | {{-- ROOM --}}{{ $area->area_name ?? $area->name ?? '-' }} | {{-- CATEGORY --}}@if($item->category == 'curtain' && $item->curtain) {{ $item->curtain->productModel->name ?? $item->curtain->custom_model_name ?? 'Curtain' }} @elseif($item->category == 'wallpaper') {{ $item->wallpaper->catalogue ?? 'Wallpaper' }} @elseif($item->category == 'mattress') {{ $item->mattress->type ?? 'Mattress' }} @else {{ ucfirst($item->category ?? '-') }} @endif | {{-- CATALOG --}}@if($item->category == 'fabric') {{ $item->product->master_catalogue_name ?? '-' }} @else {{ $item->curtain->catalogue ?? $item->wallpaper->catalogue ?? '-' }} @endif | {{-- SERIAL / SKU --}}@if($item->category == 'fabric') {{ $item->variant->sku ?? '-' }} @else {{ $item->curtain->serial_no ?? $item->wallpaper->serial_no ?? '-' }} @endif |
{{-- CURTAIN --}}
@if($item->category == 'curtain' && $item->curtain)
@php
$curtainFields = [
'type' => 'Type',
'motorized' => 'Motorized',
'motor_control' => 'Motor Control',
'model' => 'Model',
'custom_model_name' => 'Custom Model',
'catalogue' => 'Catalogue',
'serial_no' => 'Serial No',
'brand' => 'Brand',
'model_price' => 'Model Price',
'fabric_width' => 'Fabric Width',
'price_per_meter' => 'Price / Meter',
'unit' => 'Unit',
];
@endphp
@foreach($curtainFields as $field => $label)
@if(!empty($item->curtain->$field))
{{ $label }}: {{ $item->curtain->$field }} @endif @endforeach @endif {{-- WALLPAPER --}} @if($item->category == 'wallpaper' && $item->wallpaper) @php $wallpaperFields = [ 'brand' => 'Brand', 'catalogue' => 'Catalogue', 'serial_no' => 'Serial No', 'roll_width' => 'Roll Width', 'roll_length' => 'Roll Length', 'design_repeat' => 'Design Repeat', 'price_per_roll' => 'Price / Roll', 'wall_width' => 'Wall Width', 'wall_height' => 'Wall Height', 'rolls_required' => 'Rolls Required', ]; @endphp @foreach($wallpaperFields as $field => $label) @if(!empty($item->wallpaper->$field)) {{ $label }}: {{ $item->wallpaper->$field }} @endif @endforeach @endif {{-- MATTRESS --}} @if($item->category == 'mattress' && $item->mattress) @php $mattressFields = [ 'type' => 'Type', 'thickness' => 'Thickness', 'size' => 'Size', 'unit' => 'Unit', ]; @endphp @foreach($mattressFields as $field => $label) @if(!empty($item->mattress->$field)) {{ $label }}: {{ $item->mattress->$field }} @endif @endforeach @endif {{-- MEASUREMENT --}} @if($item->measurement) @php $measurementFields = [ 'width' => 'Width', 'height' => 'Height', 'length' => 'Length', 'size' => 'Size', 'measurement_type' => 'Type', 'unit' => 'Unit', ]; @endphp @foreach($measurementFields as $field => $label) @if(!empty($item->measurement->$field)) {{ $label }}: {{ $item->measurement->$field }} @endif @endforeach @endif {{-- NOTES --}} @if(!empty($item->notes)) Notes: {{ $item->notes }} @endif |
{{-- DESCRIPTION --}}
{{ $item->notes ?? '-' }} |
No items found in this area.
@endif| Date | Changed By | Old Status | New Status | Remarks |
|---|---|---|---|---|
| {{ $history->created_at->format('d M Y h:i A') }} | {{ $history->user->name }} | {{ ucwords(str_replace('_',' ',$history->old_status)) }} | {{ ucwords(str_replace('_',' ',$history->new_status)) }} | {{ $history->remarks ?? '-' }} |
| No history found | ||||