@extends('frontend.layouts.master') @section('meta_title', __('Order') . ' || ' . $setting->app_name) @section('header') @include('frontend.layouts.header-layout.three') @endsection @use('App\Enums\OrderStatus', 'OrderStatus') @section('contents') @include('frontend.profile.partials.sidebar') {{ __('Order') }} {{ __('Serial') }} {{ __('Purchase Date') }} {{ __('Quantity') }} {{ __('Amount') }} {{ __('Payment Status') }} {{ __('Status') }} {{ __('Action') }} @forelse ($orders as $key => $order) {{ $key++ < 10 ? '0' . $key++ : $key++ }} {{ formattedDate($order?->created_at) }} {{ $order?->product_qty }} {{ specific_currency_with_icon($order?->payable_currency, $order?->paid_amount) }} {{ OrderStatus::getLabel($order?->payment_status) }} {{ OrderStatus::getLabel($order?->order_status) }} @if ($order?->order_status == OrderStatus::DRAFT->value) @endif @if (in_array($order?->payment_status, [OrderStatus::COMPLETED->value, OrderStatus::REFUND->value])) @if ($order?->refund) {{ __('Refund Request') }} {{ $order?->refund?->admin_response ?? __('Your refund request is pending. Please wait for the admin response') }} @if ($order?->refund?->status == OrderStatus::COMPLETED->value) {{ __('Refund amount') }} {{ currency($order?->refund?->refund_amount) }} @endif {{ OrderStatus::getLabel($order?->refund?->status) }} @else @csrf {{ __('Refund Request') }} {{ __('Reason') }} * {{ old('reason') }} {{ __('Payment Method') }} * {{ __('Select Method') }} @foreach ($methods as $key => $method) @continue($key == 'hand_cash') {{ $method['name'] }} @endforeach {{ __('Account Information') }} * {{ old('account_information') }} @endif @endif @empty @endforelse @if ($orders->hasPages()) {{ $orders->onEachSide(0)->links('frontend.pagination.custom') }} @endif @include('frontend.partials.marquee') @endsection @section('footer') @include('frontend.layouts.footer-layout.two') @endsection
{{ $order?->refund?->admin_response ?? __('Your refund request is pending. Please wait for the admin response') }}
{{ __('Refund amount') }} {{ currency($order?->refund?->refund_amount) }}