@php $company = $project->company ?? auth()->user()?->company; $companyLogoUrl = $company?->logo_url; $dispatchDate = $challan->dispatch_date?->format('d M Y') ?? now()->format('d M Y'); $clientMobile = $project->lead?->mobile ?: $project->lead?->phone; $clientAddress = $project->lead?->address; $senderMobile = $company?->mobile_number ?: $company?->phone_number; @endphp
@if($companyLogoUrl) @else
{{ $company?->name ?? 'Workshop Platform' }}
@endif

Delivery Challan

{{ $challan->challan_no }}

Date: {{ $dispatchDate }}

Project Ref: {{ $project->reference_no }}

Project

Project
{{ $project->name }}
Client
{{ $project->client_name ?: 'N/A' }}
Client Mobile
{{ $clientMobile ?: '-' }}
Client Address
{{ $clientAddress ?: '-' }}
Manager
{{ $project->manager?->name ?? 'Unassigned' }}

Transport

Transport
{{ $challan->transport_name ?: '-' }}
Sender Mobile
{{ $senderMobile ?: '-' }}
Vehicle No
{{ $challan->vehicle_no ?: '-' }}
Driver
{{ $challan->driver_name ?: '-' }}
LR No
{{ $challan->lr_no ?: '-' }}

Items

@forelse($productions as $index => $production) @empty @endforelse
Sr Title Note
{{ $index + 1 }} {{ $production->title }} {{ $production->note ?: '-' }}
No items found.
@if($challan->remarks)
Remarks
{{ $challan->remarks }}
@endif