@php $company = $project->company ?? auth()->user()?->company; $companyLogoUrl = $company?->logo_url; @endphp
@if($companyLogoUrl) @else
{{ $company?->name ?? 'Workshop Platform' }}
@endif

Project Summary

{{ $project->reference_no }}

Generated: {{ now()->format('d M Y, h:i A') }}

Stage: {{ $project->stage_label }}

Project

Name
{{ $project->name }}
Client
{{ $project->client_name ?: 'N/A' }}
Manager
{{ $project->manager?->name ?? 'Unassigned' }}
Status
{{ str($project->status)->headline() }}

Dates

Start
{{ $project->start_date?->format('d M Y') ?? 'N/A' }}
Deadline
{{ $project->end_date?->format('d M Y') ?? 'N/A' }}
Completion
{{ $project->completion_percentage }}%
Installed
{{ $project->installation_completed_at?->format('d M Y, h:i A') ?? '-' }}
Delivery / Challan
@if(!$latestChallan)

No challan found.

@else

Challan

No
{{ $latestChallan->challan_no }}
Status
{{ str($latestChallan->status ?? 'created')->headline() }}
Date
{{ $latestChallan->dispatch_date?->format('d M Y') ?? '-' }}
Transport
{{ $latestChallan->transport_name ?: '-' }}
Vehicle
{{ $latestChallan->vehicle_no ?: '-' }}
LR No
{{ $latestChallan->lr_no ?: '-' }}
@forelse($challanProductions as $index => $production) @empty @endforelse
Sr Production Note
{{ $index + 1 }} {{ $production->title }} {{ $production->note ?: '-' }}
No production items on challan.
@endif
Installation Checklist
Step Status
Site Preparation{{ str($project->site_preparation_status ?: 'not_started')->replace('_', ' ')->headline() }}
Fixing & Welding{{ str($project->fixing_welding_status ?: 'not_started')->replace('_', ' ')->headline() }}
Testing & Commissioning{{ str($project->testing_commissioning_status ?: 'not_started')->replace('_', ' ')->headline() }}
Final Inspection{{ str($project->final_inspection_status ?: 'ready')->replace('_', ' ')->headline() }}
Client Handover{{ str($project->client_handover_status ?: 'pending')->replace('_', ' ')->headline() }}
Materials
@forelse($materials as $material) @empty @endforelse
Material Qty Size Note
{{ $material->material_name }} {{ $material->qty }} {{ $material->size ?: '-' }} {{ $material->note ?: '-' }}
No materials.
Accepted Drawing
@if(!$acceptedDrawing)

No accepted drawing.

@else

Drawing

File
{{ $acceptedDrawing->file_name }}
Version
{{ $acceptedDrawing->version }}
Accepted
{{ $acceptedDrawing->accepted_at?->format('d M Y, h:i A') ?? '-' }}
@endif