@extends('seller.layouts.app') @section('title') Order List | Seller @endsection @php $date1 = \Carbon\Carbon::parse($date1)->format('d-m-Y'); $date2 = \Carbon\Carbon::parse($date2)->format('d-m-Y'); @endphp @section('content')
@csrf

List of {{ $status }} orders from {{ $date1 }} to {{ $date2 }}

@php $total = 0; $qty = 0; @endphp @foreach ($orders as $key => $order) {{-- --}} @if ($order->shipping) @else @endif @if ($order->shipping) @else @endif {{-- @php $total += ($details->price * $details->quqntity); $qty += $details->quqntity; @endphp --}} @endforeach {{-- @foreach ($order->order_details as $key => $details) @php $total += ($details->price * $details->quqntity); $qty += $details->quqntity; @endphp @endforeach --}}
SL Date Order Id Customer Mobile No. Amount Status Action
{{ $key + 1 }} {{ $order->created_at }} {{ $order->unique_id }} {{ $order->unique_id }} {{ $order->shipping->name == '' ? 'name is not given' : $order->shipping->name }} Information not available {{ $order->shipping->phone == '' ? 'mobile no is not given' : $order->shipping->phone }} Information not available {{ $order->total }} {{ $order->status }} invoice

Total Amount: {{ $totalcollection }}

@endsection @section('style') @endsection @section('script') @endsection