@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
Order Form:
{{-- logo --}} {{--Email: {{ $companyEmail }}
Phone: {{ $companyMobile }}
Office Address: {{ $companyAddress }}
Order To:
@if (!empty($customerCompany))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| 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)) : '' }} |
|
|||||||||||||||
| {{ !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) }} | ||||||||||||||||
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