@if($headerText)
{{ $headerText }}
@endif
@if($showLogo && !empty($company['logo'])) @php $logoSrc = $company['logo']; // If it's not base64 and not an absolute URL, make it absolute if (!str_starts_with($logoSrc, 'data:') && !str_starts_with($logoSrc, 'http')) { $logoSrc = url('storage/' . ltrim($logoSrc, '/')); } @endphp
@endif @if($showCompany)
{{ $company['name'] }}
@endif
@if($company['address']){{ $company['address'] }}
@endif @if($company['city']){{ $company['city'] }}@endif @if($company['state']), {{ $company['state'] }}@endif @if($company['zip_code']) - {{ $company['zip_code'] }}@endif @if($company['city'] || $company['state'])
@endif @if($company['phone'])Tel: {{ $company['phone'] }}@endif @if($company['email']) | {{ $company['email'] }}@endif @if($company['gst'])
GSTIN: {{ $company['gst'] }}@endif
{{ ucfirst($type) }}
#{{ $sampleNumber }}
Date: {{ date('d M Y') }}
@if($type === 'invoice') Due Date: {{ date('d M Y', strtotime('+30 days')) }}
@elseif($type === 'proposal') Valid Till: {{ date('d M Y', strtotime('+15 days')) }}
@else Valid Until: {{ date('d M Y', strtotime('+30 days')) }}
@endif
Sample Preview

Bill To
Sample Customer Pvt Ltd
123 Business Park, MG Road
Bangalore, Karnataka 560001
GSTIN: 29XXXXX1234X1ZX
Ship To
Sample Customer Pvt Ltd
456 Warehouse Area, Whitefield
Bangalore, Karnataka 560066

# Description Qty Rate Tax Amount
1 Web Development Service
Custom Laravel application development
1 ₹50,000.00 18% ₹50,000.00
2 UI/UX Design
Responsive design for web and mobile
1 ₹25,000.00 18% ₹25,000.00
3 Hosting & Maintenance
12 months hosting + support
12 ₹2,000.00 18% ₹24,000.00
Subtotal₹99,000.00
CGST (9%)₹8,910.00
SGST (9%)₹8,910.00
Total₹1,16,820.00
@if($footerText) @endif