@extends('adminlte::page') @section('title', 'Occupations') @section('content_header')

Occupations Management

@endsection @section('content')
Total Occupations
{{ $occupations->total() }}
Available occupations
Active Occupations
{{ $occupations->where('is_active', true)->count() }}
Currently available
Inactive Occupations
{{ $occupations->where('is_active', false)->count() }}
Temporarily disabled
Used by Members
{{ \App\Models\Membership::distinct('occupation')->count('occupation') }}
Unique occupations in use
@forelse($occupations as $occupation) @empty @endforelse
ID Name Description Sort Status Created Actions
{{ $occupation->id }}
{{ Str::limit($occupation->name, 20) }}
{{ $occupation->description ? Str::limit($occupation->description, 30) : 'N/A' }} {{ $occupation->sort_order }} {{ $occupation->is_active ? 'Active' : 'Inactive' }} {{ $occupation->created_at->format('d M') }}
@csrf @method('PATCH')
@csrf @method('DELETE')
No Occupations Found

Start by adding your first occupation to the system.

Add First Occupation
@if($occupations->hasPages()) @endif
@endsection @push('js') @if(session('success')) Swal.fire({ icon: 'success', title: 'Success!', text: '{{ session("success") }}', timer: 3000, showConfirmButton: false }); @endif @if(session('error')) Swal.fire({ icon: 'error', title: 'Error!', text: '{{ session("error") }}', timer: 3000, showConfirmButton: false }); @endif @endpush