@extends('layouts.app')
@section('content')
@include('business_documents.styles')
Customer Feedback
@if(auth()->user()->hasPermission('customer_feedback.create'))
@endif
@if(auth()->user()->hasPermission('customer_feedback.categories'))
Categories@endif
@if(auth()->user()->hasPermission('customer_feedback.links'))
@endif
@if(session('success'))
{{ session('success') }}
@endif
@if($errors->any())
{{ $errors->first() }}
@endif
| Date | Ref. | Branch | Category | Name | Phone | Feedback | Status | Action |
@forelse($rows as $row)| {{ $row->created_at->format('d M Y H:i') }} | FB{{ $row->id }} | {{ $row->branch?->name }} | {{ $row->category?->name }} | {{ $row->customer_name ?: 'Anonymous' }} | {{ $row->phone ?: '-' }} | {{ \Illuminate\Support\Str::limit($row->message,140) }} | {{ \App\Models\CustomerFeedback::STATUSES[$row->status] ?? $row->status }} | @if(auth()->user()->hasPermission('customer_feedback.delete'))@endif |
@empty| No customer feedback found. |
@endforelse
| {{ $rows->total() }} feedback entries |
|---|
{{ $rows->links() }}