@extends('shared.admin') @section('content')

Users

All Tiki Orders

@foreach($orders as $order) @endforeach
Mã đơn hàng Tên khách hàng Địa chỉ Sản phẩm Nhãn đơn hàng Trạng thái Thành tiền
#{{ $order->code }} {{ $order->billing_address->full_name }} {{ join(', ', [$order->billing_address->street, $order->billing_address->ward, $order->billing_address->district, $order->billing_address->region]) }} @foreach($order->items as $item)

{{ $item->product->name }}

@endforeach
@foreach($order->labels as $label) @if(count($label->label)) @foreach($label->label as $label_item) @php $class = str_contains($label_item, 'printed') ? 'btn btn-sm btn-outline-success' : 'btn btn-sm btn-outline-warning' @endphp

{{ __('tiki.label.' . $label_item) }}

@endforeach @else

Chưa in phiếu

@endif @endforeach
{{ __('tiki.status.'.$order->status) }} {{ Common::numberFormat($order->invoice->grand_total) }} VND
{{ $paginator->links() }}
@endsection