@vite([ 'resources/scss/line-awesome/1.3.0/scss/line-awesome.scss', 'resources/scss/grid.scss', 'resources/scss/fonts.scss', 'resources/scss/animations.scss', 'resources/scss/typography.scss', 'resources/scss/app.scss', 'resources/scss/light.scss' ])
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif

{{ __('Invoice') }}

{{ $bill['code'] }}
@if($bill['title'])
{{ $bill['title'] }}
@endif

{{ __('Order Details') }}

{{ __('Date') }}: {{ \Carbon\Carbon::parse($bill['created_at'])->format('M d, Y g:i A') }}

{{ __('Type') }}: {{ ucfirst($bill['type']) }}

{{ __('Status') }}: {{ ucfirst(str_replace('_', ' ', $bill['payment_status'])) }}

@if($bill['customer'])

{{ __('Customer Information') }}

{{ __('Name') }}: {{ $bill['customer']['name'] }}

@if($bill['customer']['email'])

{{ __('Email') }}: {{ $bill['customer']['email'] }}

@endif @if($bill['customer']['phone'])

{{ __('Phone') }}: {{ $bill['customer']['phone'] }}

@endif
@endif

{{ __('Items') }}

@foreach($bill['products'] as $product) @endforeach
{{ __('Product') }} {{ __('Qty') }} {{ __('Unit Price') }} {{ __('Total') }}
{{ $product['name'] }} {{ $product['quantity'] }} {{ ns()->currency->define($product['unit_price']) }} {{ ns()->currency->define($product['total_price']) }}
{{ __('Subtotal') }}: {{ ns()->currency->define($bill['totals']['subtotal']) }}
@if($bill['totals']['discount'] > 0)
{{ __('Discount') }}: -{{ ns()->currency->define($bill['totals']['discount']) }}
@endif
{{ __('Tax') }}: {{ ns()->currency->define($bill['totals']['tax_value']) }}
@if($bill['totals']['shipping'] > 0)
{{ __('Shipping') }}: {{ ns()->currency->define($bill['totals']['shipping']) }}
@endif
{{ __('Total Amount') }}: {{ ns()->currency->define($bill['totals']['total']) }}
@if($bill['totals']['tendered'] > 0)
{{ __('Paid Amount') }}: {{ ns()->currency->define($bill['totals']['tendered']) }}
@if($bill['remaining_amount'] > 0)
{{ __('Remaining Amount') }}: {{ ns()->currency->define($bill['remaining_amount']) }}
@endif @endif
@if($bill['can_pay'] && $bill['remaining_amount'] > 0)

{{ __('Make Payment') }}

@csrf
@elseif($bill['payment_status'] == 'paid')

{{ __('This bill has been fully paid') }}

{{ __('Thank you for your payment!') }}

@endif

{{ __('Thank you for your business!') }}

{{ config('app.name') }}