@extends('backend.admin-master') @section('style') @include('backend.partials.datatable.style-enqueue') @endsection @section('site-title') {{__('All Product Orders')}} @endsection @section('content')

{{__('All Product Orders')}}

@foreach($all_orders as $data) @endforeach
{{__('Order ID')}} {{__('Billing Name')}} {{__('Billing Email')}} {{__('Total Amount')}} {{__('Payment Gateway')}} {{__('Payment Status')}} {{__('Status')}} {{__('Date')}} {{__('Action')}}
{{$data->id}} {{$data->billing_name}} {{$data->billing_email}} {{amount_with_currency_symbol($data->total)}} {{ucwords(str_replace('_',' ',$data->payment_gateway))}} @if($data->payment_status == 'pending') {{__($data->payment_status)}} @else {{__($data->payment_status)}} @endif @if($data->status == 'pending') {{__($data->status)}} @elseif($data->status == 'in_progress') {{ucwords(str_replace('_',' ',__($data->status)))}} @elseif($data->status == 'shipped') {{__($data->status)}} @elseif($data->status == 'complete') {{__($data->status)}} @elseif($data->status == 'cancel') {{__($data->status)}} @endif {{date_format($data->created_at,'d M Y')}} @php $shipping_method = !empty($data->shipping_details->title) ? $data->shipping_details->title : 'not selected'; @endphp {{__("Update Status")}} @if(($data->payment_gateway == 'cash_on_delivery' || $data->payment_gateway == 'manual_payment') && $data->payment_status == 'pending') {{__('Approve Payment')}} @endif @if(!empty($data->user_id) && $data->payment_status == 'pending')
@csrf
@endif
@csrf
@if(!empty($data->manual_payment_attachment)) {{__('View Attachment')}} @endif
@endsection @section('script') @endsection