@use(App\Models\Checkout) @use(App\Models\Service) @extends('adminlte::layouts.app') @section('htmlheader_title') Invoice #{{ $o->lid }} @endsection @section('page_title') {{ $o->sid }} @endsection @section('contentheader_title') Tax Invoice #{{ $o->lid }} @endsection @section('contentheader_description') @endsection @section('main-content')

Tax Invoice

FROM: {{ $site->site_name }}
{!! $site->address->join('
') !!}

Email: {{ $site->site_email }}
Phone: {{ $site->site_phone }}
TO: {{ $o->account->company }}
{!! $o->account->address->join('
') !!}

Email: {{ $o->account->user->email }}
@if($o->account->phone) Phone: {{ $o->account->phone }}
@endif
{{-- --}}
Issue Date:{{ $o->created_at->format('Y-m-d') }}
Account:{{ $o->account->sid }}
Invoice:{{ $o->lid }}
Payment Due:{{ $o->due_at->format('Y-m-d') }}
This Invoice Due:${{ number_format($o->total,2) }}
Total Account Due:${{ number_format($o->account->due,2) }}
@foreach($o->summary_products() as $item) @foreach(Service::whereIn('id',$item['services'])->get() as $so) @foreach($o->product_service_items($item['product'],$so) as $io) @endforeach @endforeach @endforeach @if($o->summary_other()->count()) @foreach($o->summary_other() as $item) @endforeach @endif
Qty Product Description Subtotal
{{ $item['services']->count() }} #{{ $item['product']->lid }} {{ $item['product']->name }} ${{ number_format($item['total'],2) }}
  Service: {{ $so->sid }}: [{{ $so->name }}]   ${{ number_format($o->product_service_items($item['product'],$so)->sum('total'),2) }}  
    {{ $io->item_type_name }} ${{ number_format($io->total,2) }}  
{{ $item['description'] }}
  {{ $item['description'] }}

Payment Methods:

@foreach(Checkout::available() as $cho) @endforeach
{{ $cho->name }} {{ $cho->description }} @includeIf('theme.backend.adminlte.payment.widget.plugin.'.strtolower($cho->plugin),['o'=>$cho])

{{ config('osb.invoice_text') }}

@if($o->id) @endif
Subtotal: ${{ number_format($o->sub_total,2) }}
  Tax (GST 10%) ${{ number_format($o->tax_total,2) }}
  Other Charges: $0.00
Total: ${{ number_format($o->total,2) }}
  Payments To Clear: ${{ number_format($o->paid_pending,2) }}
  Payments: #{{ $o->payment_items_active->pluck('payment_id')->join(', #') }} ${{ number_format($o->paid,2) }}
Invoice Due: ${{ number_format($o->due,2) }}
Print @if($o->id) Pay {{-- Download PDF --}} @endif
@endsection