@extends('backend.layouts.master') @section('section-title', 'Invoice') @section('page-title', 'Invoice List') @if (check_permission('invoice.create')) @section('action-button') Add Invoice @endsection @endif @push('css') @endpush @section('content')
| #SL | Date | Invoice No | Customer | Product Item(s) | Total Amount | Total Paid | Total Due | Courier | Status | Create By | Action | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $key + 1 }} | {{ $data->date }} | {{ $data->invoice_no }} | {{ $data->customer->name }} |
@foreach ($inv_items as $item)
|
{{ $data->total_amount }} | {{ $data->total_paid }} | {{ $data->total_due }} | {{ $data->courier_type }} | {{-- @if($data->consignment_id != null) @if ($data->courier_type == 'Stead Fast') {{ status($data->consignment_id)['delivery_status'] }} @elseif($data->courier_type == 'Pathao') @php $token = env('PATHAO_SECRET_TOKEN'); $orderSummary = getOrderSummary($data->consignment_id, $token); @endphp {{ $orderSummary['data']['order_status'] }} @endif @endif --}} | {{ $data->user->name }} |
|
|
| No Invoice Found | ||||||||||||
| Total: | {{ number_format($total_amt, 2) }} | {{ number_format($total_paid, 2) }} | {{ number_format($total_due, 2) }} | |||||||||