@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @push('css') @endpush @section('content') @include('layouts.navbars.auth.topnav', ['title' => 'Feedback Customer'])
List {{ $title_menu }}
{{ count($feedback) }} Data
@if ($authorize->add == '1') @endif @if ($authorize->delete == '1') @endif
@php $statusColors = [ 'pending' => 'warning', 'approve' => 'success', 'rejected' => 'danger', ]; $statusLabels = [ 'pending' => 'Pending', 'approve' => 'Approved', 'rejected' => 'Rejected', ]; @endphp @forelse ($feedback as $i => $row) @empty @endforelse
No ID PS ID Sample Nama Salesman Note Feedback Status Document Created Aksi
{{ $i + 1 }} {{ $row->id_ps ?? '-' }} {{ $row->id_sample ?? '-' }} {{ $row->nama_salesman ?? '-' }} {{ \Illuminate\Support\Str::limit($row->note_feedback ?? '-', 50) }} @php $status = $row->feedback_customer ?? 'pending'; $color = $statusColors[$status] ?? 'secondary'; $label = $statusLabels[$status] ?? ucfirst($status); @endphp {{ $label }} @if (!empty($row->path_document)) Lihat @else — @endif {{ \Carbon\Carbon::parse($row->created_at)->format('Y-m-d') }}
@if ($authorize->edit == '1') @endif @if ($authorize->delete == '1') @endif
Tidak ada data feedback customer
@endsection @push('js') @endpush