@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())@endif
Reset
@forelse($rows as $row) @empty@endforelse
DateRef.BranchCategoryNamePhoneFeedbackStatusAction
{{ $row->created_at->format('d M Y H:i') }}FB{{ $row->id }}{{ $row->branch?->name }}{{ $row->category?->name }}{{ $row->customer_name ?: 'Anonymous' }}{{ $row->phone ?: '-' }}{{ \App\Models\CustomerFeedback::STATUSES[$row->status] ?? $row->status }}
@if(auth()->user()->hasPermission('customer_feedback.delete'))
@csrf @method('DELETE')
@endif
No customer feedback found.
{{ $rows->total() }} feedback entries
{{ $rows->links() }}

Feedback

@if(auth()->user()->hasPermission('customer_feedback.update'))
@csrf @method('PUT')
@else

@endif
@if(auth()->user()->hasPermission('customer_feedback.links'))

Feedback Links

@csrf
@foreach($links as $link)
{{ $link->branch?->name }}
@if($link->is_active)Open Form@endif
@csrf
@csrf
@endforeach

@endif @if(auth()->user()->hasPermission('customer_feedback.create'))

Add Feedback

@csrf @error('branch_id')

{{ $message }}

@enderror @error('feedback_category_id')

{{ $message }}

@enderror @error('message')@enderror @error('customer_name')

{{ $message }}

@enderror @error('phone')

{{ $message }}

@enderror
@endif @endsection