@extends('admin.layouts.app') @section('panel')
@forelse(@$orders as $order) @empty @endforelse
@lang('Invoice') @lang('Date') @lang('Username') @lang('Total') @lang('After Discount') @lang('Payment Status') @lang('Status') @lang('Action')
@permit('admin.invoices.details') {{@$order->invoice->getInvoiceNumber}} @else {{@$order->invoice->getInvoiceNumber}} @endpermit {{ showDateTime(@$order->created_at) }}
{{ diffForHumans($order->created_at) }}
{{@$order->user->fullname}}
@if(@$order->user->id) @{{ @$order->user->username }} @endif
{{ showAmount(@$order->amount) }} {{ showAmount(@$order->after_discount) }} @php echo @$order->invoice->showStatus; @endphp @php echo @$order->showStatus; @endphp @permit('admin.orders.details') @lang('Details') @else @endpermit
{{ __($emptyMessage) }}
@if ($orders->hasPages()) @endif
@endsection @if(!@$user) @push('breadcrumb-plugins') @endpush @endif