GOA e-Services
    {{-- Dashboard for all roles --}}
  • Dashboard
  • {{-- Super Admin --}} @if(Auth::user()->role_id == 1)
  • User Management
    • Users
    • Roles
    • Permissions
  • Customer
  • Setting
    • Office
    • Windows
    • Services
  • @endif {{-- GOA Admin --}} @if(Auth::user()->role_id == 2)
  • Setting
    • Office
    • Windows
    • Services
  • @endif {{-- Officer --}} @php use App\Models\Application; use Illuminate\Support\Facades\Auth; // Get all service IDs assigned to the logged-in user via the pivot table $user = Auth::user(); $assignedServiceIds = $user->services()->pluck('services.id')->toArray(); // Count applications by status for the services assigned to this user $allCount = Application::whereIn('service_id', $assignedServiceIds)->count(); $approvedCount = Application::whereIn('service_id', $assignedServiceIds)->where('status', 'approved')->count(); $rejectedCount = Application::whereIn('service_id', $assignedServiceIds)->where('status', 'rejected')->count(); $pendingCount = Application::whereIn('service_id', $assignedServiceIds)->where('status', 'request')->count(); @endphp @if(Auth::user()->role_id == 3)
  • Gaaffiwwan {{ $allCount }}
    • Tajaajila Gafatame {{ $pendingCount }}
    • Tajaajila Fudhatame {{ $approvedCount }}
    • Tajaajila Haquame {{ $rejectedCount }}
  • @endif {{-- Customer --}} @if(Auth::user()->role_id == 4) @php $userId = Auth::user()->id; $allApplications = \App\Models\Application::where('user_id', $userId)->count(); $acceptedCount = \App\Models\Application::where('user_id', $userId)->where('status', 'accept')->count(); $approvedCount = \App\Models\Application::where('user_id', $userId)->where('status', 'approved')->count(); $rejectedCount = \App\Models\Application::where('user_id', $userId)->where('status', 'reject')->count(); $pendingCount = \App\Models\Application::where('user_id', $userId)->where('status', 'request')->count(); @endphp
  • Gaaffiwaan Koo{{ $allApplications }}
    • Tajaajila Gafatame {{ $allApplications }}
    • Tajaajila Fudhatame {{ $approvedCount }}
    • Tajaajila Hor.Irra.Jiru {{ $pendingCount }}
    • Tajaajila Mirkana'uu Dadhabe {{ $rejectedCount }}
  • {{-- --}}
  • My Profile
  • @endif @if(Auth::user()->role_id == 5) {{-- --}}
  • Windows
  • Services
  • @endif {{-- Reports for Super Admin and GOA Admin --}} @if(in_array(Auth::user()->role_id, [1, 2]))
  • Report
    • All Report
    • Sub City Report
    • Woreda Report
  • @endif