@extends('layouts.pdf-sample') @section('styles') @endsection @section('content')
{{ $company->name }}
@if($company->address){{ $company->address }}@endif
INVOICE
Bill To
{{ $sampleData['customer']['name'] }}
{{ $sampleData['customer']['address'] }}
{{ $sampleData['customer']['phone'] }}
{{ $sampleData['customer']['email'] }}
Invoice # {{ $sampleData['invoice_number'] }}
Date {{ $sampleData['invoice_date'] }}
Due Date {{ $sampleData['due_date'] }}
Status UNPAID
@foreach($sampleData['items'] as $index => $item) @endforeach
# Item Description Qty Rate Amount
{{ $index + 1 }} {{ $item['name'] }} {{ $item['quantity'] }} ${{ number_format($item['price'], 2) }} ${{ number_format($item['quantity'] * $item['price'], 2) }}
Payment Details

Bank: First National Bank

Account: {{ $company->name }}

Account #: XXXX-XXXX-1234

Routing: 021000021

Scan to pay
@if(isset($sampleData['discount']) && $sampleData['discount'] > 0) @endif
Subtotal ${{ number_format($sampleData['subtotal'], 2) }}
Tax (10%) ${{ number_format($sampleData['tax'], 2) }}
Discount -${{ number_format($sampleData['discount'], 2) }}
Total Due ${{ number_format($sampleData['total'], 2) }}
@endsection