@extends('layouts.admin-master') @section('title', 'Invoice') @section('css') @endsection @section('content') @php if(Request::route('customer_name')) $orderNo = -1; foreach($orders as $order){ $orderNo++; if($order->order_status != 'cancel' && Request::route('customer_name') == $order->username){ break; } } @endphp
| # | Order | Product | Price | Quantity | Sub Total | |
|---|---|---|---|---|---|---|
| {{$i++}} |
@php if(!in_array($order->order_id, $all_orders)){
array_push($all_orders, $order->order_id);
} @endphp
{{$order->order_id}} {{ucfirst(strtolower($order->shipping_name))}} {{ucfirst(strtolower($order->shipping_phone))}} |
@if($order_detail->attributes) @foreach(json_decode($order_detail->attributes) as $key=>$value) {{ $value }} @endforeach @endif |
{{$order->currency_sign. $order_detail->price}} | {{$order_detail->qty}} | {{$order->currency_sign. $order_detail->price*$order_detail->qty}} | |
| Sub-Total | {{$orders[$orderNo]->currency_sign . $total_price}} | |||||
| Shipping Cost(+) | {{$orders[$orderNo]->currency_sign . $shipping_cost}} | |||||
Total |
{{$orders[$orderNo]->currency_sign . ($total_price + $shipping_cost) }} |
|||||
N.B Invoice Print ({{$orders[$orderNo]->invoicePrints}}) time
@endif