@extends('layouts.appv2') @section('content')
{{-- Bootstrap container with horizontal padding --}}

Staff Designation

@if ($message = Session::get('success')) @endif @if ($message = Session::get('error')) @endif @if ($errors->any()) @endif
{{-- mx-4 = margin left/right, my-3 = margin top/bottom --}}
Manage Designation
{{-- Per Page Selection --}}
entries
{{-- Search Section --}}
@if($search) Clear @endif
{{-- ----------------- Table Start --------------------- --}}
{{-- Adds visual separation --}} @forelse($designations as $index => $designation) @empty @endforelse
@sortablelink('designation_id', 'No') @sortablelink('grade_code', 'Grade Code') @sortablelink('designation_name', 'Designation') @sortablelink('description', 'Description') Action
{{ $designations->firstItem() + $index }} {{ optional($designation->grades)->grade_code ?? 'N/A' }} {{ $designation->designation_name }} {{ $designation->description }}
{{-- Bootstrap button group for compact buttons --}}
@csrf
No Designations Found
@if($search)

No results found for "{{ $search }}"

Clear Search @else

Start by adding your first designation

Add Designation @endif
{{-- Pagination with count check --}} @if($designations->total() > 0)
Showing {{ $designations->firstItem() }} to {{ $designations->lastItem() }} of {{ $designations->total() }} entries
{{ $designations->appends(['search' => $search ?? '', 'perpage' => $perpage ?? 10])->links() }}
@endif {{-- ----------------- Table End --------------------- --}}
@endsection