@extends('layouts.app') @section('content')
# | Order ID | Payment Method | Pay ID | Customer | Amount | Payment Status | order Date | @if(Auth::user()->id != "320")Options | @endif
---|---|---|---|---|---|---|---|---|
{{ ($key+1) + ($log->currentPage() - 1)*$log->perPage() }} | {{ $order->code }} @if($order->viewed == 0) {{ translate('New') }} @endif | @if(@$order->payment_type == "letzpay_payment") {{ ucfirst("letzpay") }} @else {{ ucfirst(str_replace('_', ' ', @$order->payment_type)) }} @endif | @if(@$order->payment_type == "razorpay") {{(!empty(json_decode(@$order->payment_details)->id)) ? json_decode(@$order->payment_details)->id : 'NA'}} @elseif(@$order->payment_type == "letzpay_payment") {{(!empty(json_decode(@$order->payment_details)->TXN_ID)) ? json_decode(@$order->payment_details)->TXN_ID : 'NA'}} @else N/A @endif | @if ($order->user != null) {{ @$order->user->name }} @else Guest ({{ @$order->guest_id }}) @endif | {{ single_price(@$order->grand_total)}} | @if (@$order->payment_status == 'paid') Paid @elseif(@$order->payment_status == 'failed') Failed @else Unpaid @endif | @if($order->payment_type == 'letzpay') @php $orderDate = DB::table('order_old_created')->where('id', $order->id)->first(); @endphp {{ @$orderDate->created_at }} @else {{ date('d-m-Y h:i A', @$order->date) }} @endif | @if(Auth::user()->id != "320")
|
@endif