@extends('layouts.app') @section('content')

{{ $title }}

{{-- --}}
{{-- --}}
@if (!empty($orders) && $orders->count()) @foreach ($orders as $key => $orderItem) @endforeach @else @endif
Id Retailer Company Phone Total Price Payment Type Order Status Action
{{ $orderItem->order?->retailer?->application_no }} @if ($orderItem->order->retailer?->image == null)
@else
@endif
{{ $orderItem->order->retailer?->first_name . ' ' . $orderItem->order->retailer?->last_name }} {{ $orderItem->order->retailer?->email ?? '-' }}
{{ $orderItem->order->retailer?->company_name ?? '-' }}
{{ $orderItem->order->retailer?->phone ?? '-' }}
{{ $orderItem->order->total_price }} {{ !empty($orderItem->order->payment_type) ? $orderItem->order->payment_type : 'NA' }} {{ !empty($orderItem->order->status) ? ($orderItem->order->status == 1 ? 'Onging' : ($orderItem->order->status == 2 ? 'Completed' : ($orderItem->order->status == 3 ? 'Cancelled' : 'NA'))) : 'NA' }} @if ($orderItem->order->status != 3) @endif
No matching records found
{{ $orders->links() }}
@endsection @push('script') @endpush