@extends('panel::layouts.app') @section('body-class', '') @section('title', __('panel/menu.orders')) @section('page-title-right') @hookinsert('panel.orders.index.title.right') @endsection @section('content')
@hookinsert('panel.orders.index.criteria.after') @if ($orders->count())
@hookinsert('panel.orders.index.header.top') @hookinsert('panel.orders.index.header.extra') @foreach ($orders as $item) @hookinsert('panel.orders.index.row.top', $item) @hookinsert('panel.orders.index.row.extra', $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.total') }} {{ __('panel/order.status') }}{{ __('panel/order.created_at') }} {{ __('panel/common.actions') }}
{{ $item->id }} {{ $item->number }} {{ $item->id == $item->parent_id ? 'M' : '' }}
@foreach ($item->items->take(5) as $product)
{{ $product->name }}
@endforeach
@if ($item->customer_id > 0) {{ $item->customer_name }} @else {{ $item->customer_name }} @endif {{ $item->shipping_method_name }} {{ $item->billing_method_name }} {{ $item->total_format }} {{ $item->status_format }}{{ $item->created_at }} {{ __('panel/common.view') }}
{{ $orders->withQueryString()->links('panel::vendor/pagination/bootstrap-4') }} @else @endif
@endsection @push('footer') @hookinsert('panel.orders.footer.script.bottom') @endpush