{{-- Top order --}}
@php
$topOrder = $orders->with('orderStatus')->orderBy('id','desc')->limit(10)->get();
@endphp
| {{ trans('order.id') }} |
{{ trans('order.email') }} |
{{ trans('order.status') }} |
{{ trans('order.created_at') }} |
@if (count($topOrder))
@foreach ($topOrder as $order)
| Order#{{ $order->id }} |
{{ $order->email }} |
{{ $order->orderStatus->name }} |
{{ $order->created_at }} |
@endforeach
@endif
{{-- //End top order --}}
{{-- Top customer --}}
@php
$topCustomer = $users->orderBy('id','desc')->limit(10)->get();
@endphp
| {{ trans('customer.id') }} |
{{ trans('customer.email') }} |
{{ trans('customer.name') }} |
{{ trans('customer.created_at') }} |
@if (count($topCustomer))
@foreach ($topCustomer as $customer)
| ID#{{ $customer->id }} |
{{ $customer->email }} |
{{ $customer->name }} |
{{ $customer->created_at }} |
@endforeach
@endif
{{-- //End customer --}}
@endsection
@push('styles')
@endpush
@push('scripts')
@endpush