@extends('layouts.backend') @section('styles') @endsection @section('page-header')

Invoice

@endsection @section('content')
  • {{app(App\Settings\CompanySettings::class)->company_name}}
  • {{app(App\Settings\CompanySettings::class)->address}}
  • {{app(App\Settings\CompanySettings::class)->email}}
  • {{app(App\Settings\CompanySettings::class)->phone}}

Invoice {{$invoice->inv_id}}

  • Date: {{date_format(date_create($invoice->invoice_date),'d M, Y')}}
  • Due date: {{date_format(date_create($invoice->due_date),'d M, Y')}}
Invoice to:
  • {{$invoice->client->firstname.' '.$invoice->client->lastname}}
  • {{$invoice->client->company}}
  • {{$invoice->client_address}}
  • {{$invoice->client->phone}}
  • {{$invoice->client->email}}
@foreach ($invoice->items as $item) @endforeach
# ITEM DESCRIPTION UNIT COST QUANTITY TOTAL
{{$item['id']}} {{$item['name']}} {{$item['description']}} {{app(App\Settings\ThemeSettings::class)->currency_symbol.' '.$item['unit_cost']}} {{$item['quantity']}} {{app(App\Settings\ThemeSettings::class)->currency_symbol.' '.$item['amount']}}
Subtotal: $7,000
Tax: ({{$invoice->tax->percentage}}%) {{app(App\Settings\ThemeSettings::class)->currency_symbol.' '.(($invoice->tax->percentage/100) * $invoice->total)}}
Total:
{{app(App\Settings\ThemeSettings::class)->currency_symbol.' '.$invoice->total}}
Other information

{{$invoice->note}}

@endsection @section('scripts') @endsection