@extends('panel::layouts.app') @section('body-class', '') @section('title', __('panel/menu.orders')) @section('content')
@if ($orders->count())
@foreach($orders as $item) @endforeach
{{ __('panel/common.id') }} {{ __('panel/order.number') }} {{ __('panel/order.order_items') }} {{ __('panel/order.customer_name') }} {{ __('panel/order.shipping_method_name') }} {{ __('panel/order.billing_method_name') }} {{ __('panel/order.status') }} {{ __('panel/order.total') }} {{ __('panel/order.created_at') }} {{ __('panel/common.actions') }}
{{ $item->id }} {{ $item->number }}
@foreach($item->items->take(5) as $product)
{{ $product->name }}
@endforeach
{{ $item->customer_name }} {{ $item->shipping_method_code }} {{ $item->billing_method_code }} {{ $item->status_format }} {{ $item->total_format }} {{ $item->created_at }} {{ __('panel/common.view') }}
{{ $orders->withQueryString()->links('panel::vendor/pagination/bootstrap-4') }} @else @endif
@endsection @push('footer') @endpush