@extends('layouts.pdf-sample') @section('styles') @endsection @section('content')
{{ $company->name }}
Invoice
From
{{ $company->name }}
@if($company->address){{ $company->address }}
@endif @if($company->email){{ $company->email }}
@endif @if($company->phone){{ $company->phone }}@endif
Bill To
{{ $sampleData['customer']['name'] }}
{{ $sampleData['customer']['address'] }}
{{ $sampleData['customer']['email'] }}
{{ $sampleData['customer']['phone'] }}
Invoice No. {{ $sampleData['invoice_number'] }}
Date {{ $sampleData['invoice_date'] }}
Due Date {{ $sampleData['due_date'] }}
Terms Net 30
@foreach($sampleData['items'] as $item) @endforeach
Description Qty Rate Amount
{{ $item['name'] }} {{ $item['quantity'] }} ${{ number_format($item['price'], 2) }} ${{ number_format($item['quantity'] * $item['price'], 2) }}
Payment Information
Bank: First National Bank
Account: {{ $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