@extends('layouts.master') @section('content')
{{ $reportTitle }}
@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif
{{$title}}
{{-- 🔽 Insert description here --}}

This view lists all available Staff Categories from the HR department configuration. For each Staff Categery, you can configure its associated payroll journal mappings by clicking one of the action buttons:

These mappings ensure that all payroll variables are correctly aligned with the General Ledger for posting or integration with accounting systems.

@if ($staffCategories->isEmpty())
No staff categories found.
@endif @foreach ($staffCategories as $item) {{-- Display the name of the staff category --}} {{-- Action buttons for mapping --}} @endforeach
Name Actions
{{ $item->name }} @if(auth()->user()->roles->first()->permissions->contains('name', 'Manage GL Mapping') || auth()->user()->roles->first()->permissions->contains('name', 'View GL Mapping') ) Earnings Deductions Contributions @endif
@endsection