@if ($orders->count()) @foreach ($orders as $order) @endforeach @else @endif
Number Total Status Created At User
{{ $order->number }} {{ $order->total }} {{ $order->status }} {{ $order->created_at->format('Y-m-d @ H:i') }} {{ ucwords(substr($order->user->getTable(), 0, -1)) }}: {{ $order->user->email }} @if (auth()->guard('admins')->user()->role_type != 3) @endif @if (in_array($order->status, ['PENDING', 'PAID'])) @endif @if ($order->status != 'ADMIN_CANCELLED') @endif
No record
{{ $orders->links() }}