@php $appSettings = \Illuminate\Support\Facades\Cache::remember('app_sidebar_settings', 3600, function() { return \App\Models\Setting::whereIn('key', ['app_logo', 'app_name'])->pluck('value', 'key'); }); $appName = $appSettings['app_name'] ?? 'Ily Cattery'; // Hitung stok kritis untuk badge (TETAP UTUH) $lowMedicinesCount = \App\Models\Medicine::where('qty', '<', 5)->count(); $lowFoodsCount = \App\Models\Food::where('qty', '<', 5)->count(); @endphp {{-- Brand Header --}}

{{ $appName }}

Management System

{{-- Navigation Links --}}
{{-- Dashboard biasanya dapat diakses oleh semua user terautentikasi --}} Dashboard {{-- OPERASIONAL --}} @if(Gate::allows('check-access', ['cats', 'read']) || Gate::allows('check-access', ['matting', 'read']))
Operasional
@can('check-access', ['cats', 'read']) Data Kucing @endcan @can('check-access', ['matting', 'read']) Matting Cat Breeding @endcan @endif {{-- KESEHATAN --}} @if(Gate::allows('check-access', ['medical_insights', 'read']) || Gate::allows('check-access', ['treatments', 'read']))
Kesehatan
@can('check-access', ['medical_insights', 'read']) Medical Insight @endcan @can('check-access', ['treatments', 'read']) Rekam Medis @endcan @endif {{-- LOGISTIK --}} @if(Gate::allows('check-access', ['medicines', 'read']) || Gate::allows('check-access', ['foods', 'read']) || Gate::allows('check-access', ['supplies', 'read']) || Gate::allows('check-access', ['categories', 'read']))
Logistik
@can('check-access', ['medicines', 'read']) Obat & Vitamin @if($lowMedicinesCount > 0) {{ $lowMedicinesCount }} @endif @endcan @can('check-access', ['foods', 'read']) Stok Makanan @if($lowFoodsCount > 0) {{ $lowFoodsCount }} @endif @endcan @can('check-access', ['supplies', 'read']) Perlengkapan @endcan @can('check-access', ['categories', 'read']) Master Kategori @endcan @endif {{-- INTELLIGENCE --}} @if(Gate::allows('check-access', ['reports', 'read']) || Gate::allows('check-access', ['matting_reports', 'read']))
Intelligence
@can('check-access', ['reports', 'read']) Pusat Laporan @endcan @can('check-access', ['matting_reports', 'read']) Laporan Breeding Special @endcan @endif {{-- KONFIGURASI (Hanya tampil untuk yang memiliki akses ke modul-modul ini) --}} @if(Gate::allows('check-access', ['users', 'read']) || Gate::allows('check-access', ['roles', 'read']) || Gate::allows('check-access', ['logs', 'read']) || Gate::allows('check-access', ['settings', 'read']))
Konfigurasi
@can('check-access', ['users', 'read']) Manajemen User @endcan @can('check-access', ['roles', 'read']) Role Management @endcan @can('check-access', ['logs', 'read']) Log Audit @endcan @can('check-access', ['settings', 'read']) Pengaturan Sistem @endcan @endif