@extends('adminlte::layouts.app') @section('htmlheader_title') Invoice #{{ $o->id }} @endsection @section('contentheader_title') Invoice #{{ $o->id }} @endsection @section('contentheader_description') {{ $o->invoice_account_id }} @endsection @section('main-content')

{{ $so->site_name }} Date: {{ $o->invoice_date}}

FROM:
{{ $so->site_name }}
{!! $so->address('html') !!}

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

Email: {{ $o->account->email }}
@if ($o->account->phone) Phone: {{ $o->account->phone }}
@endif
Account:{{ $o->account->account_id }}
Invoice:{{ $o->invoice_id }}
Payment Due:{{ $o->due_date->format('Y-m-d') }}
Total Due:${{ number_format($o->total,$o->currency()->rounding) }}
@foreach ($o->products() as $po) @foreach ($o->product_services($po) as $so) @foreach ($o->product_service_items($po,$so) as $io) @endforeach @endforeach @endforeach
Qty Product Description Subtotal
{{ $po->count }} {{ $po->product_id }} {{ $po->name($o->account->user->language) }} ${{ number_format($o->items->filter(function($item) use ($po) {return $item->product_id == $po->id; })->sum('total'),$o->currency()->rounding) }}
  Service: {{ $so->service_id }}: {{ $so->name }}   ${{ number_format($o->product_service_items($po,$so)->sum('total'),$o->currency()->rounding) }}  
    {{ $io->item_type_name }} ${{ number_format($io->total,$o->currency()->rounding) }}  

Payment Methods:

{{-- Visa Mastercard American Express Paypal --}}

{!! $o->invoice_text !!}

@if($o->id) {{-- --}} @endif
Subtotal: ${{ number_format($o->sub_total,$o->currency()->rounding) }}
  Tax (GST 10%) ${{ number_format($o->tax_total,$o->currency()->rounding) }}
  Other Charges: $0.00
Total: ${{ number_format($o->total,$o->currency()->rounding) }}
  Payments To Clear: ${{ number_format($o->pending_paid,$o->currency()->rounding) }}
  Payments: ${{ number_format($o->paid,$o->currency()->rounding) }}
Invoice Total Due: ${{ number_format($o->due,$o->currency()->rounding) }}
Account Due: ${{ number_format($o->account->due,$o->currency()->rounding) }}
Print @if($o->id) Pay Download PDF @endif
@endsection @section('page-scripts') @append