@php $company_info = siteinfo(); // Embedded rather than linked, so the PDF renderer needs the bytes. // companyImageData() reads them off whichever disk the logo was // uploaded to. $logo_src = !empty($company_info) ? companyImageData($company_info->img_url) : null; @endphp
@if ($logo_src)
Company Logo
@endif @if (!empty($company_info) && !empty($company_info->name))

{{ $company_info->name }}

@endif

INVOICE

Invoice No {{ $invoice->invoice_no }}
Date Issued {{ date('d-M-Y', strtotime($invoice->billing_date ?? '')) }}
Contact Info {{ $company_info->name ?? '' }}
{{ $company_info->email ?? '' }}
{{ $company_info->mobile ?? '' }}
{{ $company_info->address ?? '' }}
Issued To {{ $invoice->bandwidthSaleCustomer->customer_name ?? '' }}
{{ $invoice->bandwidthSaleCustomer->email ?? '' }}
{{ $invoice->bandwidthSaleCustomer->phone ?? '' }}
{{ $invoice->bandwidthSaleCustomer->address ?? '' }}
@forelse ($invoice->sateItems as $item) @empty @endforelse
DESCRIPTION OF SERVICES RATE VAT TOTAL(BDT)
{{ $item->service->name ?? '' }} ({{ $item->quantity ?? '' }} MB) {{ date('d-M-Y', strtotime($item->from_date ?? '')) }} to {{ date('d-M-Y', strtotime($item->to_date ?? '')) }} {{ number_format($item->rate, 2) }} {{ number_format($item->vat, 2) }} {{ number_format($item->line_total, 2) }}
SUB TOTAL {{ number_format($invoice->total, 2) }}
DISCOUNT {{ number_format($invoice->discount, 2) }}
GRAND TOTAL {{ number_format($invoice->total - $invoice->discount, 2) }}
PAID AMOUNT {{ number_format($invoice->paid, 2) }}
DUE {{ number_format($invoice->total - ($invoice->discount + $invoice->paid), 2) }}
Authorized Signature
THANK
YOU