@extends('layouts.app') @section('content') @php $paymentMethod = (!empty($invoiceInfo->method) ? $invoiceInfo->method : ''); $configInfo = (!empty($paymentMethod->config) ? json_decode($paymentMethod->config) : ''); $companyName = $configInfo->company_name ?? $siteInfo->site_name ?? 'N/A'; $companyEmail = $configInfo->email ?? $siteInfo->email ?? 'N/A'; $companyMobile = $configInfo->mobile ?? $siteInfo->mobile ?? 'N/A'; $companyAddress = $configInfo->address ?? $siteInfo->location ?? 'N/A'; $customerInfo = $invoiceInfo->customer; $customerCompany = $customerInfo->company_name ?? ''; $customerName = $customerInfo->full_name ?? 'N/A'; $customerEmail = $customerInfo->email ?? 'N/A'; $customerMobile = $customerInfo->phone ?? ''; $customerAddress = $customerInfo->address ?? ''; @endphp

Show Invoice

All Invoice

Invoice

Invoice No. #{{ !empty($invoiceInfo->invoice_no) ? $invoiceInfo->invoice_no : '' }}

{{-- billing from --}}

Order Form:

{{-- logo --}} {{-- Logo --}}

{{$companyName}}

Email: {{ $companyEmail }}

Phone: {{ $companyMobile }}

Office Address: {{ $companyAddress }}

{{-- billing to --}}

Order To:

@if (!empty($customerCompany))

{{ $customerCompany }}

@endif

Name: {{ $customerName }}

Email: {{$customerEmail}}

@if(!empty($customerMobile))

Phone: {{$customerMobile}}

@endif @if(!empty($customerAddress))

Address: {{$customerAddress}}

@endif @if (!empty($invoiceInfo->created))

Invoice Date: {{ !empty($invoiceInfo->created) ? date('d F, Y', strtotime($invoiceInfo->created)) : 'N/A' }}

@endif @if (!empty($invoiceInfo->payment_date))

Paid Date: {{ !empty($invoiceInfo->payment_date) ? date('d F, Y', strtotime($invoiceInfo->payment_date)) : 'N/A' }}

@endif
@if (!empty($orderList) && $orderList->isNotEmpty()) @foreach ($orderList as $key => $order) @endforeach
Order ID Date Billing On
Live Link Total
#{{ !empty($order->order_no) ? $order->order_no : '' }} {{ !empty($order->created) ? date('d F, Y', strtotime($order->created)) : '' }} @if (!empty($order->orderItem)) @foreach ($order->orderItem as $row => $items) @endforeach @endif
{{ $order->billType?->name }} @if(!empty($order->orderItem)) @foreach($order->orderItem as $item) @php $mainUrl = parse_url($item->live_url); $host = !empty($mainUrl['host']) ? $mainUrl['host'] : ''; @endphp @if(!empty($host)) {{ $host }}{{ !$loop->last ? ', ' : '' }} @endif @endforeach @endif
{{ $items->url }} {{ sprintf("$%0.2f", $items->total) }}
Subtotal {{ sprintf("$%0.2f", $order->subtotal) }}
Service Charge {{ sprintf("$%0.2f", $order->service_charge) }}
Tax {{ sprintf("$%0.2f", $order->tax) }}
Discount {{ sprintf("$%0.2f", $order->discount) }}
Grand Total {{ sprintf("$%0.2f", $order->grand_total) }}
{{ !empty($invoiceInfo->status) ? strFilter($invoiceInfo->status) : '' }} Subtotal {{ sprintf("$%0.2f", $invoiceInfo->subtotal) }}
Discount {{ sprintf("$%0.2f", $invoiceInfo->discount) }}
Total {{ sprintf("$%0.2f", $invoiceInfo->grand_total) }}
@endif
@if($invoiceInfo->status == 'processing')

Payment Info:

Payment Method: {{$invoiceInfo->method->name}}

@if(!empty($invoiceInfo->paymentDetails))

Account Name: {{$invoiceInfo->paymentDetails->name}}

@endif @if(!empty($invoiceInfo->paymentDetails))

Transaction ID: {{$invoiceInfo->paymentDetails->payment_id}}

@endif @if(!empty($invoiceInfo->paymentDetails->pay_slip))

Pay Slip: Payslip

@endif
@endif
Download as PDF @if ($invoiceInfo->status != 'complete') Edit Again @endif
@endsection @push('headerPartial') @endpush @push('footerPartial') @endpush