367 lines
33 KiB
PHP
367 lines
33 KiB
PHP
|
|
<?php
|
||
|
|
$appName = \App\Models\Setting::where('key', 'app_name')->value('value') ?? 'ILY Cattery';
|
||
|
|
$appLogo = \App\Models\Setting::where('key', 'app_logo')->value('value');
|
||
|
|
$lowMedicinesCount = \App\Models\Medicine::where('qty', '<', 5)->count();
|
||
|
|
$lowMakananCount = \App\Models\Food::where('qty', '<', 5)->count();
|
||
|
|
?>
|
||
|
|
|
||
|
|
<div x-show="sidebarOpen" x-cloak @click="sidebarOpen=false" class="fixed inset-0 z-30 bg-slate-900/30 lg:hidden"></div>
|
||
|
|
<aside :class="sidebarOpen ? 'translate-x-0' : '-translate-x-full lg:translate-x-0'"
|
||
|
|
class="fixed inset-y-0 left-0 z-40 flex w-64 shrink-0 flex-col border-r border-slate-200 bg-white transition-transform duration-200 lg:static lg:z-auto">
|
||
|
|
<div class="flex h-16 items-center gap-3 border-b border-slate-200 px-5">
|
||
|
|
<?php if($appLogo): ?>
|
||
|
|
<img src="<?php echo e(Storage::url($appLogo)); ?>" alt="Logo <?php echo e($appName); ?>" class="h-9 w-9 rounded-lg object-contain">
|
||
|
|
<?php else: ?>
|
||
|
|
<div class="flex h-9 w-9 items-center justify-center rounded-lg bg-indigo-600 text-white"><i class="fas fa-cat"></i></div>
|
||
|
|
<?php endif; ?>
|
||
|
|
<div class="min-w-0">
|
||
|
|
<div class="truncate text-sm font-bold text-slate-900"><?php echo e($appName); ?></div>
|
||
|
|
<div class="text-xs text-slate-500">Manajemen cattery</div>
|
||
|
|
</div>
|
||
|
|
<button @click="sidebarOpen=false" class="ml-auto p-2 text-slate-400 lg:hidden" aria-label="Tutup menu"><i class="fas fa-times"></i></button>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<nav class="flex-1 overflow-y-auto px-3 py-4">
|
||
|
|
<div class="space-y-1">
|
||
|
|
<?php if (isset($component)) { $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $component; } ?>
|
||
|
|
<?php if (isset($attributes)) { $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $attributes; } ?>
|
||
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.sidebar-link','data' => ['href' => route('dashboard'),'active' => request()->routeIs('dashboard'),'icon' => 'fa-chart-column']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||
|
|
<?php $component->withName('sidebar-link'); ?>
|
||
|
|
<?php if ($component->shouldRender()): ?>
|
||
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||
|
|
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php $component->withAttributes(['href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('dashboard')),'active' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(request()->routeIs('dashboard')),'icon' => 'fa-chart-column']); ?>Beranda <?php echo $__env->renderComponent(); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php if (isset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
|
||
|
|
<?php $attributes = $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
|
||
|
|
<?php unset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php if (isset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
|
||
|
|
<?php $component = $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
|
||
|
|
<?php unset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<?php if(Gate::allows('check-access', ['cats','read']) || Gate::allows('check-access', ['matting','read']) || Gate::allows('check-access', ['treatments','read'])): ?>
|
||
|
|
<div class="mt-6">
|
||
|
|
<p class="px-3 pb-2 text-xs font-semibold text-slate-400">Operasional</p>
|
||
|
|
<div class="space-y-1">
|
||
|
|
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('check-access', ['cats','read'])): ?>
|
||
|
|
<?php if (isset($component)) { $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $component; } ?>
|
||
|
|
<?php if (isset($attributes)) { $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $attributes; } ?>
|
||
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.sidebar-link','data' => ['href' => route('cats.index'),'active' => request()->routeIs('cats.*'),'icon' => 'fa-cat']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||
|
|
<?php $component->withName('sidebar-link'); ?>
|
||
|
|
<?php if ($component->shouldRender()): ?>
|
||
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||
|
|
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php $component->withAttributes(['href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('cats.index')),'active' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(request()->routeIs('cats.*')),'icon' => 'fa-cat']); ?>Data kucing <?php echo $__env->renderComponent(); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php if (isset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
|
||
|
|
<?php $attributes = $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
|
||
|
|
<?php unset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php if (isset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
|
||
|
|
<?php $component = $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
|
||
|
|
<?php unset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('check-access', ['matting','read'])): ?>
|
||
|
|
<?php if (isset($component)) { $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $component; } ?>
|
||
|
|
<?php if (isset($attributes)) { $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $attributes; } ?>
|
||
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.sidebar-link','data' => ['href' => route('matting.index'),'active' => request()->routeIs('matting.*'),'icon' => 'fa-venus-mars']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||
|
|
<?php $component->withName('sidebar-link'); ?>
|
||
|
|
<?php if ($component->shouldRender()): ?>
|
||
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||
|
|
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php $component->withAttributes(['href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('matting.index')),'active' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(request()->routeIs('matting.*')),'icon' => 'fa-venus-mars']); ?>Perkawinan & pembiakan <?php echo $__env->renderComponent(); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php if (isset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
|
||
|
|
<?php $attributes = $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
|
||
|
|
<?php unset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php if (isset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
|
||
|
|
<?php $component = $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
|
||
|
|
<?php unset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('check-access', ['treatments','read'])): ?>
|
||
|
|
<?php if (isset($component)) { $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $component; } ?>
|
||
|
|
<?php if (isset($attributes)) { $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $attributes; } ?>
|
||
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.sidebar-link','data' => ['href' => route('treatments.index'),'active' => request()->routeIs('treatments.*'),'icon' => 'fa-notes-medical']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||
|
|
<?php $component->withName('sidebar-link'); ?>
|
||
|
|
<?php if ($component->shouldRender()): ?>
|
||
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||
|
|
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php $component->withAttributes(['href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('treatments.index')),'active' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(request()->routeIs('treatments.*')),'icon' => 'fa-notes-medical']); ?>Rekam medis <?php echo $__env->renderComponent(); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php if (isset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
|
||
|
|
<?php $attributes = $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
|
||
|
|
<?php unset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php if (isset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
|
||
|
|
<?php $component = $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
|
||
|
|
<?php unset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('check-access', ['medical_insights','read'])): ?>
|
||
|
|
<?php if (isset($component)) { $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $component; } ?>
|
||
|
|
<?php if (isset($attributes)) { $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $attributes; } ?>
|
||
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.sidebar-link','data' => ['href' => route('medical.dashboard'),'active' => request()->routeIs('medical.dashboard'),'icon' => 'fa-heart-pulse']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||
|
|
<?php $component->withName('sidebar-link'); ?>
|
||
|
|
<?php if ($component->shouldRender()): ?>
|
||
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||
|
|
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php $component->withAttributes(['href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('medical.dashboard')),'active' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(request()->routeIs('medical.dashboard')),'icon' => 'fa-heart-pulse']); ?>Ringkasan kesehatan <?php echo $__env->renderComponent(); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php if (isset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
|
||
|
|
<?php $attributes = $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
|
||
|
|
<?php unset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php if (isset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
|
||
|
|
<?php $component = $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
|
||
|
|
<?php unset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<?php endif; ?>
|
||
|
|
|
||
|
|
<?php 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'])): ?>
|
||
|
|
<div class="mt-6">
|
||
|
|
<div class="flex items-center justify-between px-3 pb-2">
|
||
|
|
<p class="text-xs font-semibold text-slate-400">Inventori</p>
|
||
|
|
<?php if(($lowMedicinesCount+$lowMakananCount)>0): ?><span class="rounded bg-rose-50 px-1.5 py-0.5 text-xs font-semibold text-rose-600"><?php echo e($lowMedicinesCount+$lowMakananCount); ?></span><?php endif; ?>
|
||
|
|
</div>
|
||
|
|
<div class="space-y-1">
|
||
|
|
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('check-access', ['medicines','read'])): ?><?php if (isset($component)) { $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $component; } ?>
|
||
|
|
<?php if (isset($attributes)) { $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $attributes; } ?>
|
||
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.sidebar-link','data' => ['href' => route('inventory.medicines.index'),'active' => request()->routeIs('inventory.medicines.*'),'icon' => 'fa-pills']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||
|
|
<?php $component->withName('sidebar-link'); ?>
|
||
|
|
<?php if ($component->shouldRender()): ?>
|
||
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||
|
|
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php $component->withAttributes(['href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('inventory.medicines.index')),'active' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(request()->routeIs('inventory.medicines.*')),'icon' => 'fa-pills']); ?>Medicine & vitamin <?php echo $__env->renderComponent(); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php if (isset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
|
||
|
|
<?php $attributes = $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
|
||
|
|
<?php unset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php if (isset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
|
||
|
|
<?php $component = $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
|
||
|
|
<?php unset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
|
||
|
|
<?php endif; ?><?php endif; ?>
|
||
|
|
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('check-access', ['foods','read'])): ?><?php if (isset($component)) { $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $component; } ?>
|
||
|
|
<?php if (isset($attributes)) { $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $attributes; } ?>
|
||
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.sidebar-link','data' => ['href' => route('inventory.foods.index'),'active' => request()->routeIs('inventory.foods.*'),'icon' => 'fa-bowl-food']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||
|
|
<?php $component->withName('sidebar-link'); ?>
|
||
|
|
<?php if ($component->shouldRender()): ?>
|
||
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||
|
|
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php $component->withAttributes(['href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('inventory.foods.index')),'active' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(request()->routeIs('inventory.foods.*')),'icon' => 'fa-bowl-food']); ?>Makanan <?php echo $__env->renderComponent(); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php if (isset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
|
||
|
|
<?php $attributes = $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
|
||
|
|
<?php unset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php if (isset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
|
||
|
|
<?php $component = $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
|
||
|
|
<?php unset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
|
||
|
|
<?php endif; ?><?php endif; ?>
|
||
|
|
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('check-access', ['supplies','read'])): ?><?php if (isset($component)) { $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $component; } ?>
|
||
|
|
<?php if (isset($attributes)) { $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $attributes; } ?>
|
||
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.sidebar-link','data' => ['href' => route('inventory.supplies.index'),'active' => request()->routeIs('inventory.supplies.*'),'icon' => 'fa-box']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||
|
|
<?php $component->withName('sidebar-link'); ?>
|
||
|
|
<?php if ($component->shouldRender()): ?>
|
||
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||
|
|
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php $component->withAttributes(['href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('inventory.supplies.index')),'active' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(request()->routeIs('inventory.supplies.*')),'icon' => 'fa-box']); ?>Perlengkapan <?php echo $__env->renderComponent(); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php if (isset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
|
||
|
|
<?php $attributes = $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
|
||
|
|
<?php unset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php if (isset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
|
||
|
|
<?php $component = $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
|
||
|
|
<?php unset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
|
||
|
|
<?php endif; ?><?php endif; ?>
|
||
|
|
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('check-access', ['categories','read'])): ?><?php if (isset($component)) { $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $component; } ?>
|
||
|
|
<?php if (isset($attributes)) { $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $attributes; } ?>
|
||
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.sidebar-link','data' => ['href' => route('categories.index'),'active' => request()->routeIs('categories.*'),'icon' => 'fa-tags']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||
|
|
<?php $component->withName('sidebar-link'); ?>
|
||
|
|
<?php if ($component->shouldRender()): ?>
|
||
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||
|
|
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php $component->withAttributes(['href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('categories.index')),'active' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(request()->routeIs('categories.*')),'icon' => 'fa-tags']); ?>Kategori <?php echo $__env->renderComponent(); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php if (isset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
|
||
|
|
<?php $attributes = $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
|
||
|
|
<?php unset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php if (isset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
|
||
|
|
<?php $component = $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
|
||
|
|
<?php unset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
|
||
|
|
<?php endif; ?><?php endif; ?>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<?php endif; ?>
|
||
|
|
|
||
|
|
<?php if(Gate::allows('check-access', ['reports','read']) || Gate::allows('check-access', ['matting_reports','read'])): ?>
|
||
|
|
<div class="mt-6">
|
||
|
|
<p class="px-3 pb-2 text-xs font-semibold text-slate-400">Laporan</p>
|
||
|
|
<div class="space-y-1">
|
||
|
|
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('check-access', ['reports','read'])): ?><?php if (isset($component)) { $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $component; } ?>
|
||
|
|
<?php if (isset($attributes)) { $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $attributes; } ?>
|
||
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.sidebar-link','data' => ['href' => route('admin.reports.index'),'active' => request()->routeIs('admin.reports.index'),'icon' => 'fa-chart-line']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||
|
|
<?php $component->withName('sidebar-link'); ?>
|
||
|
|
<?php if ($component->shouldRender()): ?>
|
||
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||
|
|
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php $component->withAttributes(['href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('admin.reports.index')),'active' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(request()->routeIs('admin.reports.index')),'icon' => 'fa-chart-line']); ?>Pusat laporan <?php echo $__env->renderComponent(); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php if (isset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
|
||
|
|
<?php $attributes = $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
|
||
|
|
<?php unset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php if (isset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
|
||
|
|
<?php $component = $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
|
||
|
|
<?php unset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
|
||
|
|
<?php endif; ?><?php endif; ?>
|
||
|
|
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('check-access', ['matting_reports','read'])): ?><?php if (isset($component)) { $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $component; } ?>
|
||
|
|
<?php if (isset($attributes)) { $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $attributes; } ?>
|
||
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.sidebar-link','data' => ['href' => route('admin.reports.matting.index'),'active' => request()->routeIs('admin.reports.matting.*'),'icon' => 'fa-file-lines']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||
|
|
<?php $component->withName('sidebar-link'); ?>
|
||
|
|
<?php if ($component->shouldRender()): ?>
|
||
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||
|
|
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php $component->withAttributes(['href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('admin.reports.matting.index')),'active' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(request()->routeIs('admin.reports.matting.*')),'icon' => 'fa-file-lines']); ?>Laporan pembiakan <?php echo $__env->renderComponent(); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php if (isset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
|
||
|
|
<?php $attributes = $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
|
||
|
|
<?php unset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php if (isset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
|
||
|
|
<?php $component = $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
|
||
|
|
<?php unset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
|
||
|
|
<?php endif; ?><?php endif; ?>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<?php endif; ?>
|
||
|
|
|
||
|
|
<?php 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'])): ?>
|
||
|
|
<div class="mt-6">
|
||
|
|
<p class="px-3 pb-2 text-xs font-semibold text-slate-400">Administrasi</p>
|
||
|
|
<div class="space-y-1">
|
||
|
|
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('check-access', ['users','read'])): ?><?php if (isset($component)) { $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $component; } ?>
|
||
|
|
<?php if (isset($attributes)) { $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $attributes; } ?>
|
||
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.sidebar-link','data' => ['href' => route('admin.users.index'),'active' => request()->routeIs('admin.users.*'),'icon' => 'fa-users']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||
|
|
<?php $component->withName('sidebar-link'); ?>
|
||
|
|
<?php if ($component->shouldRender()): ?>
|
||
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||
|
|
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php $component->withAttributes(['href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('admin.users.index')),'active' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(request()->routeIs('admin.users.*')),'icon' => 'fa-users']); ?>Pengguna <?php echo $__env->renderComponent(); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php if (isset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
|
||
|
|
<?php $attributes = $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
|
||
|
|
<?php unset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php if (isset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
|
||
|
|
<?php $component = $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
|
||
|
|
<?php unset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
|
||
|
|
<?php endif; ?><?php endif; ?>
|
||
|
|
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('check-access', ['roles','read'])): ?><?php if (isset($component)) { $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $component; } ?>
|
||
|
|
<?php if (isset($attributes)) { $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $attributes; } ?>
|
||
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.sidebar-link','data' => ['href' => route('admin.roles.index'),'active' => request()->routeIs('admin.roles.*'),'icon' => 'fa-user-shield']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||
|
|
<?php $component->withName('sidebar-link'); ?>
|
||
|
|
<?php if ($component->shouldRender()): ?>
|
||
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||
|
|
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php $component->withAttributes(['href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('admin.roles.index')),'active' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(request()->routeIs('admin.roles.*')),'icon' => 'fa-user-shield']); ?>Hak akses <?php echo $__env->renderComponent(); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php if (isset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
|
||
|
|
<?php $attributes = $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
|
||
|
|
<?php unset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php if (isset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
|
||
|
|
<?php $component = $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
|
||
|
|
<?php unset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
|
||
|
|
<?php endif; ?><?php endif; ?>
|
||
|
|
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('check-access', ['logs','read'])): ?><?php if (isset($component)) { $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $component; } ?>
|
||
|
|
<?php if (isset($attributes)) { $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $attributes; } ?>
|
||
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.sidebar-link','data' => ['href' => route('admin.logs.index'),'active' => request()->routeIs('admin.logs.*'),'icon' => 'fa-clock-rotate-left']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||
|
|
<?php $component->withName('sidebar-link'); ?>
|
||
|
|
<?php if ($component->shouldRender()): ?>
|
||
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||
|
|
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php $component->withAttributes(['href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('admin.logs.index')),'active' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(request()->routeIs('admin.logs.*')),'icon' => 'fa-clock-rotate-left']); ?>Jejak aktivitas <?php echo $__env->renderComponent(); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php if (isset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
|
||
|
|
<?php $attributes = $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
|
||
|
|
<?php unset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php if (isset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
|
||
|
|
<?php $component = $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
|
||
|
|
<?php unset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
|
||
|
|
<?php endif; ?><?php endif; ?>
|
||
|
|
<?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('check-access', ['settings','read'])): ?><?php if (isset($component)) { $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $component; } ?>
|
||
|
|
<?php if (isset($attributes)) { $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300 = $attributes; } ?>
|
||
|
|
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.sidebar-link','data' => ['href' => route('admin.settings.index'),'active' => request()->routeIs('admin.settings.*'),'icon' => 'fa-gear']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||
|
|
<?php $component->withName('sidebar-link'); ?>
|
||
|
|
<?php if ($component->shouldRender()): ?>
|
||
|
|
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||
|
|
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||
|
|
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php $component->withAttributes(['href' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(route('admin.settings.index')),'active' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(request()->routeIs('admin.settings.*')),'icon' => 'fa-gear']); ?>Pengaturan <?php echo $__env->renderComponent(); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php if (isset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
|
||
|
|
<?php $attributes = $__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
|
||
|
|
<?php unset($__attributesOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
|
||
|
|
<?php endif; ?>
|
||
|
|
<?php if (isset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300)): ?>
|
||
|
|
<?php $component = $__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300; ?>
|
||
|
|
<?php unset($__componentOriginal3d3185cbc95d2b4d3b41182ae7d7a300); ?>
|
||
|
|
<?php endif; ?><?php endif; ?>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<?php endif; ?>
|
||
|
|
</nav>
|
||
|
|
|
||
|
|
<div class="border-t border-slate-200 p-4">
|
||
|
|
<div class="mb-3 flex items-center gap-3 px-1">
|
||
|
|
<div class="flex h-8 w-8 items-center justify-center rounded-full bg-slate-100 text-xs font-bold text-slate-700"><?php echo e(strtoupper(substr(auth()->user()->name,0,1))); ?></div>
|
||
|
|
<div class="min-w-0"><p class="truncate text-sm font-semibold text-slate-800"><?php echo e(auth()->user()->name); ?></p><p class="truncate text-xs text-slate-500"><?php echo e(auth()->user()->roleModel?->name ?? auth()->user()->getRawOriginal('role') ?? 'Pengguna'); ?></p></div>
|
||
|
|
</div>
|
||
|
|
<form method="POST" action="<?php echo e(route('logout')); ?>"><?php echo csrf_field(); ?>
|
||
|
|
<button class="flex w-full items-center gap-3 px-3 py-2 text-sm font-medium text-slate-600 hover:bg-slate-50 hover:text-rose-600"><i class="fas fa-right-from-bracket w-5"></i>Keluar</button>
|
||
|
|
</form>
|
||
|
|
</div>
|
||
|
|
</aside>
|
||
|
|
<?php /**PATH /home/u806112658/domains/earrinasia.com/ilycats/resources/views/layouts/navigation-sidebar.blade.php ENDPATH**/ ?>
|