@extends('backEnd.layouts.master') @section('title','Customer Complaints') @section('css') @endsection @section('content')

Customer Complaints

@forelse($complaints as $complaint) @empty {{-- Empty state usually handled by datatable, but safe to keep --}} @endforelse
SL Order ID Customer Info Description Image Current Status Update Status / Action
{{ $loop->iteration }} #{{ $complaint->order_id ?? 'N/A' }}
{{ $complaint->name }} {{ $complaint->phone }}
{{ \Illuminate\Support\Str::limit($complaint->description, 50) }} @if($complaint->image) Evidence @else No Image @endif @if($complaint->status === 'pending') Pending @elseif($complaint->status === 'processing') Processing @else Resolved @endif
{{-- Update Status Form --}}
@csrf
{{-- Delete Button --}}
@csrf @method('DELETE')
{{ $complaints->links('pagination::bootstrap-4') }}
@endsection @section('script') @endsection