@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 @endforeach
{{ __('Item Name') }} {{ __('Quantity') }} {{ __('Total Amount') }}
{{ $itemrow->products->title ?? '' }} {{ $itemrow->qty ?? '' }} {{ number_format($itemrow->total*$itemrow->qty,2) }}
@if($info->coupon_id != null)

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

Discount: {{ $info->discount }}

@endif

Subtotal: {{ $info->total }}

Shipping: {{ $info->shipping }}

Total: {{ $info->shipping+$info->total }}

{{ __('Amount') }}
{{ number_format($info->total+$info->shipping,2) }}
{{ __('Shipping') }}
{{ number_format($info->shipping,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 }}
{{ __('Payment Id:') }} {{ $customerInfo->payment_id ?? '' }}
@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) @endsection