@lang('modules.refund.refundReport')

@lang('modules.refund.refundReportMessage') @php $formattedStartTime = \Carbon\Carbon::parse($startTime)->format('h:i A'); $formattedEndTime = \Carbon\Carbon::parse($endTime)->format('h:i A'); @endphp ({{ $startDate === $endDate ? __('modules.report.salesDataFor') . " $startDate, " . __('modules.report.timePeriod') . " $formattedStartTime - $formattedEndTime" : __('modules.report.salesDataFrom') . " $startDate " . __('app.to') . " $endDate, " . __('modules.report.timePeriodEachDay') . " $formattedStartTime - $formattedEndTime" }})

@lang('modules.refund.totalRefunds')

{{ $this->totalRefunds }}

@lang('modules.refund.totalRefundAmount')

{{ currency_format($this->totalRefundAmount, restaurant()->currency_id) }}

@lang('modules.refund.totalOriginalAmount')

{{ currency_format($this->totalOriginalAmount, restaurant()->currency_id) }}

@lang('modules.refund.commissionAdjustment')

{{ currency_format($this->totalCommissionAdjustment, restaurant()->currency_id) }}

@lang('app.to')
@lang('app.to')
@if($searchTerm) @endif
@lang('app.export')
@forelse ($this->refunds as $refund) @empty @endforelse
@lang('modules.order.orderNumber') @lang('modules.settings.refundReason') @lang('modules.refund.originalPrice') @lang('modules.refund.resalePrice') @lang('modules.order.deliveryApp') @lang('modules.refund.commissionAdjustment') @lang('modules.refund.inventoryChange')
{{ $refund->processed_at ? \Carbon\Carbon::parse($refund->processed_at)->setTimezone(timezone())->format('M d, Y') : '-' }} {{ $refund->payment && $refund->payment->order ? ($refund->payment->order->show_formatted_order_number ?? $refund->payment->order->order_number) : '-' }} @php $typeLabels = [ 'full' => __('modules.refund.fullRefund'), 'partial' => __('modules.refund.partialRefund'), 'waste' => __('modules.refund.wasteRefund') ]; $typeColors = [ 'full' => 'bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-200', 'partial' => 'bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200', 'waste' => 'bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-200' ]; @endphp {{ $typeLabels[$refund->refund_type] ?? $refund->refund_type }} @if($refund->refund_type === 'partial' && $refund->partial_refund_type) @php $partialTypeLabels = [ 'fixed' => __('modules.refund.fixedAmount'), 'custom' => __('modules.refund.customAmount') ]; @endphp ({{ $partialTypeLabels[$refund->partial_refund_type] ?? $refund->partial_refund_type }}) @endif {{ $refund->refundReason->reason ?? '-' }} {{ $refund->processedBy->name ?? '-' }} {{ currency_format($refund->payment->amount ?? 0, restaurant()->currency_id) }} {{ currency_format($refund->amount, restaurant()->currency_id) }} {{ __('app.na') }} @if($refund->deliveryPlatform) {{ $refund->deliveryPlatform->name }} @elseif($refund->payment && $refund->payment->order && $refund->payment->order->deliveryPlatform) {{ $refund->payment->order->deliveryPlatform->name }} @else - @endif @if($refund->commission_adjustment && $refund->commission_adjustment > 0) {{ currency_format($refund->commission_adjustment, restaurant()->currency_id) }} @else - @endif @if($refund->refund_type === 'waste') @lang('modules.refund.writeOff') @else {{ __('app.na') }} @endif
@lang('messages.noRecordFound')
@script @endscript