@extends('employee.layouts.app') @section('title', get_setting('site_name').' | '.__('E-Nothi')) @section('content')
@if (session()->has('message'))
{{ session('message') }}
@endif @if (session()->has('error'))
{{ session('error') }}
@endif

{{ __('E-Nothi') }} / {{ __('ই-নথি') }}

{{ __('Submit applications or problems to management.') }}

{{ __('New application') }}
{{ __('My applications') }} {{ __('Showing') }} {{ $rows->firstItem() ?? 0 }}–{{ $rows->lastItem() ?? 0 }} {{ __('of') }} {{ $rows->total() }}
@if(!empty($hasFilters) && $hasFilters)

{{ __('Filters applied') }}

@endif
@forelse($rows as $row) @php $statusClass = match ($row->status) { \App\Models\EnothiFile::STATUS_APPROVED => 'approved', \App\Models\EnothiFile::STATUS_CLOSED => 'closed', \App\Models\EnothiFile::STATUS_REJECTED => 'rejected', \App\Models\EnothiFile::STATUS_IN_REVIEW => 'in_review', \App\Models\EnothiFile::STATUS_RETURNED => 'returned', \App\Models\EnothiFile::STATUS_SUBMITTED => 'submitted', default => 'draft', }; @endphp @empty @endforelse
{{ __('File no.') }} {{ __('Subject') }} {{ __('Category') }} {{ __('Priority') }} {{ __('Status') }} {{ __('Date') }} {{ __('Action') }}
{{ $row->file_number }} {{ \Illuminate\Support\Str::limit($row->subject, 50) }} {{ \App\Models\EnothiFile::categoryLabel($row->category, $row->enothi_category_id) }} @if($row->priority === \App\Models\EnothiFile::PRIORITY_URGENT) {{ __('Urgent') }} @else {{ __('Normal') }} @endif {{ \App\Models\EnothiFile::statusLabel($row->status) }} {{ $row->submitted_at?->format('Y-m-d') ?? $row->created_at?->format('Y-m-d') }}
@if(!empty($hasFilters) && $hasFilters) {{ __('No applications match your search.') }} @else {{ __('No applications yet.') }} @endif
@if($rows->hasPages()) @endif
@endsection