@extends('admin.layouts.main') @php $page_name = 'Return Orders'; @endphp @section('content')

Return Orders

{{-- Filter Form --}}
{{-- Return Orders Table --}}
@forelse ($returnOrders as $order) @empty @endforelse
ID Product Qty Reason Description Status Requested At Action
{{ $order->id }}
image
{{ $order->product_name }}
{{ $order->quantity }} {{ ucfirst($order->reason) }} {{ $order->description }} {{ ucfirst($order->status) }} {{ \Carbon\Carbon::parse($order->created_at)->format('d M Y, h:i A') }} Order Invoice @if ($order->status == 'pending') @elseif ($order->status == 'rejected') {{ $order->comments }} @elseif ($order->status == 'accepted') {{-- UPDATED BUTTONS TO TRIGGER MODALS --}} @elseif($order->status == 'returned') @elseif($order->status == 'refunded' || $order->status == 'replace') Compleate @endif
No return orders found.
{{-- Pagination --}}
{{ $returnOrders->appends(request()->query())->links('pagination::bootstrap-5') }}
{{-- Accept Modal --}} {{-- Reject Modal --}} @endsection @section('script') @endsection