{{ config('app.name', 'DrJobs') }}
{{ config('site_info.company_address', 'Company Address') }}
{{ config('site_info.company_email', 'info@drjobs.com') }}
{{ config('site_info.company_phone', '+1 (555) 123-4567') }}
INVOICE
#{{ $invoice_number }}
{{ ucfirst($payment->status) }}
Bill To
@if($billing_info) @endif
Company Name: {{ isset($company->name) ? $company->name : (isset($billing_info->business_name) ? $billing_info->business_name : 'NA') }}
Contact Person: {{ $billing_info->name ?? '' }}
Email: {{ $billing_info->additional_email ?? 'N/A' }}
Address: {{ $billing_info->address_line_1 ?? '' }}
Invoice Details
@if($payment->transaction_id) @endif
Invoice Date: {{ $payment->created_at->format('F d, Y') }}
Payment Method: {{ ucfirst($payment->payment_method ?? 'N/A') }}
Transaction ID: {{ $payment->transaction_id }}
Subscription Period: {{ $payment->period_start ? $payment->period_start->format('F d, Y') : 'N/A' }} - {{ $payment->period_end ? $payment->period_end->format('F d, Y') : 'N/A' }}
Invoice Items
Description Quantity Unit Price Amount
{{ $plan->title ?? 'Subscription Plan' }}
@if($plan) {{ $plan->active_jobs ?? 0 }} Active Jobs | 1 {{ $plan->type == 1 ? 'Month' : 'Year' }} Duration @endif
{{ $payment->subscribe_type == 1 ? 'Monthly' : ($payment->subscribe_type == 2 ? 'Yearly' : 'One-time') }} Subscription
1 {{ $payment->currency }} {{ number_format($payment->amount, 2) }} {{ $payment->currency }} {{ number_format($payment->amount, 2) }}
@if($payment->transaction_fee) @endif
Subtotal: {{ $payment->currency }} {{ number_format($payment->amount, 2) }}
Transaction Fee: {{ $payment->currency }} {{ number_format($payment->transaction_fee, 2) }}
Total: {{ $payment->currency }} {{ number_format($payment->amount, 2) }}
@if($payment->transaction_time || $payment->card_last4)
Payment Information
@if($payment->transaction_time)
Transaction Date: {{ \Carbon\Carbon::parse($payment->transaction_time)->format('F d, Y h:i A') }}
@endif @if($payment->card_last4)
Payment Card: {{ ucfirst($payment->card_type ?? 'Card') }} ending in {{ $payment->card_last4 }}
@endif @if($payment->net_amount)
Net Amount: {{ $payment->currency }} {{ number_format($payment->net_amount, 2) }}
@endif
@endif