@if (session()->has('message'))
{{ session('message') }}
@endif
| ID |
Category |
English Name |
Arabic Name |
Scope |
Sentiment |
Actions |
@forelse($factors as $factor)
| {{ $factor->rating_factors_id }} |
{{ $factor->category->category_name_en ?? 'N/A' }} |
{{ $factor->factor_name_en }} |
{{ $factor->factor_name_ar }} |
@if($factor->scope == 'brand')
Brand
@else
Branch
@endif
|
@php
$badgeClass = match($factor->sentiment_type) {
'positive' => 'bg-light-success text-success',
'negative' => 'bg-light-danger text-danger',
default => 'bg-light-secondary text-secondary',
};
@endphp
{{ ucfirst($factor->sentiment_type) }}
|
|
@empty
| No factors found. |
@endforelse
{{ $factors->links() }}