@extends('garage.layouts.app')
@section('title', 'Responsibility Rules')
@section('content')
@include('garage.hr.styles')
Responsibility Master
Map services to department/designation. Employee responsibilities must follow these rules.
@if(session('success'))
{{ session('success') }}
@endif
@if(session('error'))
{{ session('error') }}
@endif
@if($errors->any())
@foreach($errors->all() as $e)- {{ $e }}
@endforeach
@endif
| Service |
Department |
Designation |
Status |
Actions |
@forelse($rules as $r)
| {{ $r->service_name ?: '—' }} |
{{ $r->department_name ?: '—' }} |
{{ $r->designation_name ?: 'All in department' }} |
@if($r->is_active)
Active
@else
Inactive
@endif
|
|
@empty
| No rules found. |
@endforelse
@if(method_exists($rules,'links'))
{{ $rules->links() }}
@endif