@extends('layouts.app') @section('content')
@csrf
@can('order.delete')
@endcan
@foreach($posts ?? [] as $key => $row) @endforeach
{{ __('Order') }} {{ __('Date') }} {{ __('Customer') }} {{ __('Amount') }} {{ __('Tax') }} {{ __('Method') }} {{ __('Payment Status') }} {{ __('Fulfillment') }} {{ __('Action') }}
{{ $row->order_no }} {{ $row->created_at->format('d-F-Y') }} {{ $row->user->name }} {{ amount_format($row->amount) }} {{ number_format($row->tax,2) }} {{ $row->category->name ?? '' }} @if($row->payment_status==1) {{ __('Paid') }} @elseif($row->payment_status == 2) {{ __('Pending') }} @else {{ __('Fail') }} @endif @if($row->status == 1) Approved @elseif($row->status == 2) {{ __('Pending') }}@elseif($row->status == 3) {{ __('Expired') }}@else {{ __('Cancelled') }} @endif
@endsection @push('js') @endpush