@extends('admin.layouts.app') @section('panel')
@forelse($orders as $order) @php $qty = @$order->orderItems->count(); $perUnitPrice = @$order->orderItems->first()->price; @endphp @empty @endforelse
@lang('User') @lang('Order ID') @lang('Ordered At') @lang('Amount') @lang('Quantity') @lang('Status') @lang('Details')
{{ $order->user->fullname }}
@{{ $order->user->username }}
{{ $order->id ?? "Trx" }}
{{-- --}} {{-- @lang('View Details')--}} {{-- --}}
{{ showDateTime($order->created_at) }}
{{ diffForHumans($order->created_at) }}
{{ $qty }} @lang('Qty') x {{ showAmount($perUnitPrice) }} {{ __($general->cur_text) }} {{showAmount($order->total_amount)}} {{ __($general->cur_text) }} {{ $qty }} @php echo $order->statusBadge; @endphp @lang('Details')
{{ __($emptyMessage) }}
@if($orders->hasPages()) @endif
@endsection @push('style-lib') @endpush @push('script-lib') @endpush @push('script') @endpush