@extends('layouts.admin') @section('content') @include('include.datatable-css')
@include('include.refresh-button')
@include('include.flash-message')
@foreach ($data as $record) @endforeach
Invoice No. Order No. Billing Address Shipping Address Item Description Quantity Unit Price Date Customer Sub Total Tax Amount Total Amount Payment Method Created By Date & Time Action
{{ $record->invoice_no }} {{ $record->order_no }} {{ $record->billing_address }} {{ $record->shipping_address }} {{ $record->item_description }} {{ $record->quantity }} ${{ number_format($record->unit_price, 2) }} {{ $record->invoice_date }} @isset($record->user) {{ $record->user->firstName }} {{ $record->user->lastName }} @endisset ${{ number_format($record->sub_total, 2) }} ${{ number_format($record->tax_amount, 2) }} ${{ number_format($record->total_amount, 2) }} @isset($record->paymentMethod) @switch($record->paymentMethod->code) @case('STR') CARD @break @case('COD') CASH ON DELIVERY @break @case('INT') INTRAC @break @default @endswitch @endisset {{ $payment->creator->accountId }} {{ $record->created_at }}
@include('include.datatable') @include('include.filters-common-js-part') @include('include.datatable-date-range-selector-js', ['url' => 'invoices']) @endsection