@extends('layouts.frontend') @section('headerMeta') {{$siteInfo->site_name}} | Your Order Invoice Details @endsection @section('content')
@foreach ($cardData as $key => $row)
{!!$row['icon']!!} {{$row['title']}} {{ $row['value'] }}
@endforeach
Payment Status @if ($invoiceInfo->status == 'paid') Paid @elseif($invoiceInfo->status == 'processing') Processing @elseif($invoiceInfo->status == 'pending') Pending @else Unpaid @endif
Invoice
{{-- Billing Details --}}

Billing From

  • Company Name : {{ $companyName }}
  • Email : {{ $companyEmail }}
  • Phone : {{ $companyMobile }}
  • Office Address : {{ $companyAddress }}

Billing To

  • Name : {{$customerName}}
  • Email : {{$customerEmail}}
  • @if(!empty($customerMobile))
  • Phone : {{$customerMobile}}
  • @endif @if(!empty($customerAddress))
  • Address : {{$customerAddress}}
  • @endif
@foreach ($orderList as $key => $order)
@if(!empty($order->orderItem)) @foreach ($order->orderItem as $row => $items) @endforeach
Order Details

Order ID: {{ $order->order_no }}

Billing Type: {{ $order->billType?->name }}

Order Date: {{ date('d F, Y', strtotime($order->created)) }}

{{ $items->live_url }} @if($order->billType?->name == "Link Insertion On") @php($anchorText = json_decode($items->anchor)) @foreach($anchorText as $anchor)
{{ $anchor->anchor_text }}: {{ $anchor->link }}
@endforeach @endif
${{ $items->total }}
@endif
@endforeach @if(!empty($invoiceList) && $invoiceList->isNotEmpty())
@foreach ($invoiceList as $row) @endforeach
Others Invoice
Invoice No. Date Status Total Action
#{{$row->invoice_no}} {{$row->created}} {{($row->is_payment == 1 ? 'Paid' : 'Unpaid') }} ${{$row->grand_total}}
{{ $invoiceList->links() }}
@endif

Total Order Summery

Sub Total ${{ $invoiceInfo->subtotal }}
Discount ${{ $invoiceInfo->discount }}
Total ${{ $invoiceInfo->grand_total }}
@if ($invoiceInfo->status == 'unpaid') @if(empty($invoiceInfo->method_id)) @include('components.frontend.payment.multiple') @else @if(in_array($paymentMethod->slug, config('custom.stripe-list'))) @include('components.frontend.payment.stripe') @elseif(in_array($paymentMethod->slug, config('custom.paypal-list'))) @include('components.frontend.payment.paypal') @elseif(in_array($paymentMethod->slug, config('custom.bank-list'))) @include('components.frontend.payment.bank') @endif @endif @endif
@endsection @push('headerPartial') @endpush @push('footerPartial') @endpush