@extends('adminlte::layouts.app')
@section('htmlheader_title')
Invoice #{{ $o->id }}
@endsection
@section('contentheader_title')
Invoice #
@endsection
@section('contentheader_description')
{{ $o->invoice_account_id }}
@endsection
@section('main-content')
FROM: |
{{ $so->site_name }} |
|
{!! $so->address('html') !!} |
Phone |
{{ $so->site_phone }} |
Email |
{{ $so->site_email }} |
TO: |
{{ $o->account->company }} |
|
{!! $o->account->address('html') !!} |
@if ($o->account->phone)
Phone |
{{ $so->site_phone }} |
@else
|
@endif
Email |
{{ $o->account->email }} |
Account |
{{ $o->account->account_id }} |
Invoice # |
{{ $o->invoice_id }} |
Payment Due |
{{ $o->due_date->format('Y-m-d') }} |
Total |
${{ number_format($o->total,$o->currency()->rounding) }} |
Qty |
Product |
Description |
Subtotal |
@foreach ($o->products() as $po)
{{ $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) }} |
@foreach ($o->product_services($po) as $so)
|
Service: {{ $so->service_id }}: {{ $so->name }} |
|
${{ number_format($o->product_service_items($po,$so)->sum('total'),$o->currency()->rounding) }} |
|
@foreach ($o->product_service_items($po,$so) as $io)
|
|
{{ $io->item_type_name }} |
${{ number_format($io->total,$o->currency()->rounding) }} |
|
@endforeach
@endforeach
@endforeach
Payment Methods:
{{--
--}}
{{ $o->invoice_text }}
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: |
${{ number_format($o->paid,$o->currency()->rounding) }} |
Account Due: |
${{ number_format($o->due,$o->currency()->rounding) }} |
@endsection
@section('page-scripts')
@append