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

Bank: First National Bank

Account Name: {{ $company->name }}

Account No: XXXX-XXXX-1234

SWIFT: FNBKUS33

@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: ${{ number_format($sampleData['total'], 2) }}
@endsection