@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') }}

@forelse ($orders as $key => $order) @empty @endforelse
{{ __('Serial') }} {{ __('Purchase Date') }} {{ __('Quantity') }} {{ __('Amount') }} {{ __('Payment Status') }} {{ __('Status') }} {{ __('Action') }}
{{ $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])) @endif
@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