PPC

Paper Per Click

INVOICE
No:{{ $invoice->created_at->format('Y') }}-{{ str_pad($invoice->id, 5, '0', STR_PAD_LEFT) }}
Invoice Date
{{$invoice->created_at->format('d M Y')}}
Expiry Date
{{ \Carbon\Carbon::parse($invoice->expirydate)->format('d M Y') }}
Client ID
CL-{{ $invoice->created_at->format('Y') }}-{{ str_pad($invoice->school->id, 5, '0', STR_PAD_LEFT) }}
Total Amount
Rs.{{ number_format($invoice->advance + $invoice->amount, 0) }}

Client

{{$invoice->school->name}}.
@php $addressWords = explode(' ', $invoice->school->address ?? ''); $firstLine = implode(' ', array_slice($addressWords, 0, 3)); $secondLine = implode(' ', array_slice($addressWords, 3)); @endphp {{ ucfirst($firstLine) }}
{{ ucfirst($secondLine) }}
{{$invoice->school->cntctnum}}

ID: CL-{{ $invoice->created_at->format('Y') }}-{{ str_pad($invoice->school->id, 5, '0', STR_PAD_LEFT) }}

Payment

Manager: {{ucfirst($invoice->user->name)}}
Account Type: {{ $invoice->type == 1 ? 'New Account' : ($invoice->type == 2 ? 'Renew' : 'N/A') }}
Status: {{ucfirst($invoice->name)}}
Company: SoftPeak

Total Due:{{ number_format($invoice->advance + $invoice->amount, 0) }}
{{----}} {{----}} {{----}} {{----}} {{----}} {{----}} {{----}} {{----}}
NO ITEM DESCRIPTION PRICE TOTAL
01 Advance {{number_format($invoice->advance)}} Rs.{{number_format($invoice->advance)}}
02 {{ $invoice->type == 1 ? 'New Account' : ($invoice->type == 2 ? 'Renew' : 'N/A') }} 20,000 Rs.20,000
03 {{ $invoice->promo_id ? $invoice->promo->name : '------' }} {{ $invoice->promo_id ? $invoice->promo->discount.'%' : '------' }} @if($invoice->promo) {{ number_format((20000 * $invoice->promo->discount) / 100, 0) }} @else ------ @endif
Subtotal$2,500.00
Tax (10%)$250.00
Grand Total Rs.{{ number_format($invoice->advance + $invoice->amount)}}
Thank you for your business!
Please pay by the due date. Contact us at info@xdesign.com or +1 (555) 123-4567.
Contact
www.xdesign.com
info@xdesign.com
+1 (555) 123-4567
123 Design Street, Creative City
{{----}}