| @lang('app.id') | @lang('modules.order.amount') | @lang('modules.order.paymentMethod') | @lang('modules.order.transactionId') | @lang('modules.order.orderNumber') | @lang('app.dateTime') | @lang('app.action') |
|---|---|---|---|---|---|---|
| {{ $loop->remaining+1 }} | {{ currency_format($item->amount, restaurant()->currency_id) }} | @switch($item->payment_method) @case('cash') {{ __('modules.order.' . $item->payment_method) }} @break @case('card') {{ __('modules.order.' . $item->payment_method) }} @break @case('upi') {{ __('modules.order.' . $item->payment_method) }} @break @case('stripe') @break @case('razorpay') @break @case('flutterwave') {{ __('modules.order.' . $item->payment_method) }} @break @default {{ ucwords(str_replace('_', ' ', $item->payment_method)) }} @endswitch | {{ $item->transaction_id }} | order)) wire:click="$dispatch('showOrderDetail', { id: {{ $item->order->id }} })" @endif @endif > {{ $item->order?->show_formatted_order_number ?? '-' }} | @include('common.date-time-display', ['date' => $item->created_at]) |
@php
$processedRefunds = $item->refunds->where('status', 'processed');
$totalRefundedAmount = $processedRefunds->sum('amount');
@endphp
@if($processedRefunds->count() > 0)
@lang('modules.refund.refunded')
{{ currency_format($totalRefundedAmount, restaurant()->currency_id) }}
@else
|
| @lang('messages.noPaymentFound') | ||||||