@extends('layouts.backend.app') @section('content')

{{ __('Orders') }}

@php $subtotal=0; @endphp @foreach($info->orderlist as $key => $itemrow) @php $total= $itemrow->total+$subtotal; $subtotal = $total; @endphp @if($itemrow->products->type==6) @else @endif @endforeach
{{ __('Item No') }} {{ __('Item Name') }} {{ __('Quantity') }} {{ __('Total Amount') }}
#{{ $itemrow->products->id ?? '' }}#{{ $itemrow->products->id ?? '' }}{{ $itemrow->products->title ?? '' }} {{ $itemrow->qty ?? '' }} {{ $itemrow->total ?? '' }}

Subtotal: {{ $subtotal }}

@if($info->coupon_id != null)

Discount Code: {{ $info->coupon->title ?? '' }}

Discount: {{ $info->discount }}

@endif

Total: {{ $total }}

@if($info->status != 0 && $info->status != 1)
{{ __('Amount') }}
{{ number_format($total,2) }}
{{ __('Payment Mode') }}
{{ strtoupper($info->payment_method) }}
{{ __('Payment Status') }}
@if($info->payment_status == 0) {{ __('Pending') }} @elseif($info->payment_status == 1) {{ __('Completed') }} @endif
{{ __('Order Status') }}
@if($info->status == 0) {{ __('Cancelled') }} @elseif($info->status == 2) {{ __('Pending') }} @elseif($info->status == 3) {{ __('Accepted') }} @elseif($info->status == 1) {{ __('Completed') }} @endif
@php $customerInfo=json_decode($info->data); @endphp
{{ __('Customer Name') }}:
{{ $customerInfo->name }}
{{ __('Customer Phone') }}:
{{ $customerInfo->phone }}
@if($info->order_type == 1)
{{ __(' Delevery Address') }}:
{{ $customerInfo->address }}
@endif
{{ __('Order Note') }}
{{ $customerInfo->note }}
@if($info->order_type == 1) @endif
@endsection @section('script') @if($info->order_type == 1) @else @endif @endsection