{{ $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 ?? '-' }}
@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 {{-- 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 (is_custom badge) --}}@if($item->is_custom == 1) 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 --}}{{-- CURTAIN --}} @if($item->category == 'curtain' && $item->curtain) {{ $item->curtain->productModel->name ?? $item->curtain->custom_model_name ?? 'Curtain' }} {{-- WALLPAPER --}} @elseif($item->category == 'wallpaper' && $item->wallpaper) {{ $item->wallpaper->catalogue ?? 'Wallpaper' }} {{-- MATTRESS --}} @elseif($item->category == 'mattress' && $item->mattress) {{ $item->mattress->type ?? 'Mattress' }} {{-- DEFAULT --}} @else {{ ucfirst($item->category ?? '-') }} @endif | {{-- CATALOG --}}{{ $item->curtain->catalogue ?? $item->wallpaper->catalogue ?? '-' }} @if($item->category == 'fabric') {{ $item->product->master_catalogue_name ?? '-' }} @endif | {{-- SERIAL --}}{{ $item->curtain->serial_no ?? $item->wallpaper->serial_no ?? '-' }} @if($item->category == 'fabric') {{ $item->variant->sku ?? '-' }} @endif |
@if($item->category == 'curtain' && $item->curtain)
Brand: {{ $item->curtain->brand ?? '-' }} Catalog: {{ $item->curtain->catalogue ?? '-' }} Serial: {{ $item->curtain->serial_no ?? '-' }} @if($item->is_custom) Fabric Width: {{ $item->curtain->fabric_width ?? '-' }} Rate: {{ $item->curtain->price_per_meter ?? '-' }} @endif @elseif($item->category == 'wallpaper' && $item->wallpaper) Brand: {{ $item->wallpaper->brand ?? '-' }} Roll Size: {{ $item->wallpaper->roll_width ?? '-' }} x {{ $item->wallpaper->roll_length ?? '-' }} @else {{ $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 | ||||