@extends('layouts.frontend') @section('title_page', 'Veterinary Dashboard - Rusizi Veterinary') @section('content') @php $user = auth()->user(); $isAdmin = $user->user_type === 'admin'; @endphp
@include('frontend.partials.sidebar')
@if(Auth::user()->user_type === 'admin')

Super Admin Dashboard

@else

Veterinary Dashboard

@endif

Veterinary Report of Whole System

@if(Auth::user()->user_type === 'admin')

{{ \App\Models\CowInseminationReport::count() }}

Total Cows

{{ \App\Models\PigInsemination::count() }}

Total Pigs

{{ \App\Models\NewBornCalves::count() }}

New Born Calves

{{ \App\Models\Vaccination::count() }}

Vaccination

@endif @if(Auth::user()->user_type === 'admin' )
{{ \App\Models\CowInseminationReport::count() }}

Cow Reports

{{ \App\Models\NewBornCalves::count() }}

Calves Report

{{ \App\Models\PigInsemination::count() }}

Pig Report

{{ \App\Models\Gallery::count() }}

Manage Gallery

{{ \App\Models\News::count() }}

Manage News

{{ \App\Models\TeamMember::count() }}

My Team

@endif @if(Auth::user()->user_type === 'user' )
{{ $isAdmin ? \App\Models\CowInseminationReport::count() : \App\Models\CowInseminationReport::where('reported_by', $user->id)->count() }}

Cow Insemination

{{ $isAdmin ? \App\Models\NewBornCalves::count() : \App\Models\NewBornCalves::where('reported_by', $user->id)->count() }}

New Born
Calves

{{ $isAdmin ? \App\Models\PigInsemination::count() : \App\Models\PigInsemination::where('reported_by', $user->id)->count() }}

Pig
Insemination

@endif

Recent Activity

Latest updates from your veterinary activities

Cow Insemination Completed

Successfully completed insemination for cow #245

2 hours ago

New Calf Born

New calf registered in the system

5 hours ago

Health Check Required

Pig #189 requires health examination

1 day ago
@endsection