@php $violationStatusOptions = collect(\App\Models\Violation::statusOptions())->pluck('name', 'id')->toArray(); $hasActiveFilters = filled($filterEmployee) || filled($filterReason) || filled($filterPenalty) || filled($filterStatus) || filled($filterFrom) || filled($filterTo); @endphp
| # | {{ __('Employee') }} | {{ __('Reason') }} | {{ __('Date') }} | {{ __('Repeat') }} | {{ __('Penalty') }} | {{ __('Status') }} | {{ __('Attachment') }} | {{ __('Actions') }} |
|---|---|---|---|---|---|---|---|---|
| {{ $loop->iteration + ($violations->currentPage() - 1) * $violations->perPage() }} | {{ $violation->employee->name ?? '-' }} | {{ $violation->reason }} | {{ $violation->violation_date }} | {{ $violation->repeat_count }} | {{ $violation->penalty }} | {{ __($violation->status ?? 'active') }} | @if($violation->attachment_url) {{ __('View') }} @else — @endif | @can('violations edit') @endcan @can('violations delete') @endcan {{ __('View') }} |
| {{ __('No violations found.') }} | ||||||||
{{ __('Are you sure you want to delete this violation?') }}