@php $company_info = siteinfo(); $logo_src = null; if (!empty($company_info) && !empty($company_info->img_url)) { $logo_path = storage_path('app/public/company/' . $company_info->img_url); if (!file_exists($logo_path)) { $logo_path = public_path('storage/company/' . $company_info->img_url); } if (file_exists($logo_path)) { $mime = mime_content_type($logo_path); $logo_src = 'data:' . $mime . ';base64,' . base64_encode(file_get_contents($logo_path)); } } @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