@if(count($order_status)) @foreach($order_status as $item) {{$item->id == 1 ? "Chờ vận đơn" : $item->name}} ({{isset($order_group[$item->id]) ? $order_group[$item->id] : 0}}) @endforeach @endif
@if(count($orders)) @foreach($orders as $key => $item) @if($item) {{--{{dd($item->order_text)}}--}} {{-- {{$sum[$item->id]++}}--}} @endif @endforeach @endif
Sale Mã đơn
Ngày chốt đơn
Kho
PTGH
Mã giao vận
Care đơn
Ghi chú kế toán
Trạng thái giao hàng ĐSNB Sản phẩm SL Đơn giá Thành tiền CK Phí dịch vụ VC Phí VC hỗ trợ khách Phí VC thu của khách Khách đặt cọc Tổng tiền Họ tên
Số điện thoại
Địa chỉ
Ghi chú giao hàng
{{$key+1}} {{@$item->sale->name}} {{$item->code}}
{{ $item->ngay_chot_don ? date("d / m / Y H:i", strtotime($item->ngay_chot_don)) : date("d / m / Y H:i", strtotime($item->updated_at))}}
{{@$item->depot->name}}
Thủ công
{{$item->status == 1 ? 'Chờ vận đơn' : @$item->orderStatus->name}} {!! $item->order_text['product_text'] !!} {!! $item->order_text['product_quantity'] !!} {!! $item->order_text['product_price'] !!} {{@number_format($item->total)}} {{@number_format($item->advan_price)}} {{@number_format($item->total)}} {{@$item->customer->name}}
{{@$item->customer->phone}}
{{$item->address}}
@if($orders->currentPage() == $orders->lastPage()) ({{$orders->total()}}/{{$orders->total()}}) @else ({{$orders->currentPage()*$orders->perPage()}}/ {{$orders->total()}}) @endif {{$orders->links()}}