@extends('layouts.pdf-sample') @section('styles') @endsection @section('content')
Payment Receipt
Receipt #{{ $sampleData['receipt_number'] }}

{{ $company->name }}

@if($company->address)

{{ $company->address }}

@endif @if($company->phone)

Phone: {{ $company->phone }}

@endif @if($company->email)

Email: {{ $company->email }}

@endif
Date: {{ $sampleData['date'] }}
Time: {{ $sampleData['time'] }}
Cashier: {{ $sampleData['cashier'] }}
Customer: {{ $sampleData['customer']['name'] }}
Phone: {{ $sampleData['customer']['phone'] }}
Email: {{ $sampleData['customer']['email'] }}
Items Purchased
@foreach($sampleData['items'] as $index => $item) @endforeach
# Item Description Qty Price Total
{{ $index + 1 }} {{ $item['name'] }} {{ $item['quantity'] }} ${{ number_format($item['price'], 2) }} ${{ number_format($item['quantity'] * $item['price'], 2) }}
@if(isset($sampleData['discount']) && $sampleData['discount'] > 0) @endif
Subtotal: ${{ number_format($sampleData['subtotal'], 2) }}
Tax ({{ $sampleData['tax_percent'] }}%): ${{ number_format($sampleData['tax'], 2) }}
Discount: -${{ number_format($sampleData['discount'], 2) }}
Total Paid: ${{ number_format($sampleData['total'], 2) }}
Payment Method: {{ $sampleData['payment_method'] }} Transaction ID: {{ $sampleData['transaction_id'] }}

Scan to verify this receipt

@endsection