@extends('layouts.app') @section('content')
@include('layouts.includes.header')
@if (session('success'))
{{ session('success') }}
@endif @if (session('warning'))
{{ session('warning') }}
@endif

Order

@include('layouts.shipping.bar')
@if($orders->count()) @foreach($orders as $value) @endforeach @else @endif
Order Date
Channel

Search By Channel

Order ID

Search By Order ID

Product Details
Payment
Customer details
Shipping Detail

Search By Courier

Dimension & Weight
Status
{{$value->order_date}} {{$value->store_name}} {{$value->order_id}} @php $products = fetch_orders_products($value->id); $countProducts = count($products) - 1; $i = 0; @endphp @forelse ( $products as $info) @if($i == 0) Name: {!! substr(strip_tags($info['name']), 0, 22) !!}.. SKU: {{$info['sku']}} Qty: {{$info['quantity']}}

{{ $countProducts != 0 ? "+ ".$countProducts." More Products" : '' }}

@else Name: {!! substr(strip_tags($info['name']), 0, 22) !!}.. SKU: {{$info['sku']}} Qty: {{$info['quantity']}}
@endif @if($i == $countProducts)
@endif @php $i++; @endphp @endforeach
{{$value->total}} {{$value->payment_method}} {{$value->shipping_name}} {{$value->shipping_email}} {{$value->shipping_phone}} @php $addr = getpickupAddress($value->pickup_location_id); @endphp Courier: {{$value->courier_company}} AWB No.: {{$value->awb_code}} Pickup Address: @if($addr) {{$addr->address}} @endif {{$value->total_length}} x {{$value->total_width}} x {{$value->total_height}} cm Volumetric: {{$value->volumemetric_weight}} Kg Entered: {{$value->total_weight}} Kg {{get_order_status_current($value->system_order_status)}}

Show items per page

{{$orders->links('layouts.pagination.default',['paginator' => $orders])}}
@include('layouts.includes.footer')
@endsection