@extends('layouts.master') @section('title') @lang('translation.Admin_Dashboard') @endsection @section('css') @endsection @section('content') @component('components.breadcrumb') @slot('li_1') Dashboard @endslot @slot('title') Admin Overview @endslot @endcomponent
Total Staff

0

{{ $staffChange >= 0 ? '+' : '' }}{{ $staffChange }} Since last month
Total Employers

0

{{ $employerChange >= 0 ? '+' : '' }}{{ $employerChange }} Since last month
Total Clients

0

{{ $clientChange >= 0 ? '+' : '' }}{{ $clientChange }} Since last month
Total Departments

0

{{ $departmentChange >= 0 ? '+' : '' }}{{ $departmentChange }} Since last month
Total Branches

0

{{ $branchChange >= 0 ? '+' : '' }}{{ $branchChange }} Since last month
Total Positions

0

{{ $positionChange >= 0 ? '+' : '' }}{{ $positionChange }} Since last month
Staff Status Distribution

Branch Statistics

@foreach($branchStats as $branch) @endforeach
Branch Staff Departments Growth (30d)
{{ $branch['name'] }}
{{ $branch['staff'] }} {{ $branch['departments'] }} @php // Calculate growth percentage (placeholder - you'll need to implement actual growth calculation) $growth = rand(0, 20); @endphp {{ $growth >= 0 ? '+' : '' }}{{ $growth }}%
Total {{ $staffCount }} {{ $departmentCount }} @php $totalGrowth = rand(5, 15); @endphp {{ $totalGrowth >= 0 ? '+' : '' }}{{ $totalGrowth }}%

Recent Staff Members

@foreach($recentStaff as $staff) @endforeach
Name Position Department Branch Status Action
@if($staff->staff_picture) @else
@if($staff->user) {{ substr($staff->user->first_name, 0, 1) }}{{ substr($staff->user->last_name, 0, 1) }} @else @endif
@endif
@if($staff->user) {{ $staff->user->first_name }} {{ $staff->user->last_name }} @else Unknown User @endif

{{ $staff->staff_id }}

@if($staff->position) {{ $staff->position->position_name }} @else N/A @endif @if($staff->department) {{ $staff->department->name }} @else N/A @endif @if($staff->branch) {{ $staff->branch->name }} @else N/A @endif {{ $staff->is_active ? 'Active' : 'Inactive' }} View

Recent Employers

@foreach($recentEmployers as $employer) @endforeach
Name Contact Branch Clients Status Action
@if($employer->logo) @else
{{ substr($employer->name, 0, 1) }}
@endif
{{ $employer->name }}

{{ $employer->tax_id }}

{{ $employer->contact_person }}

{{ $employer->phone }}

@if($employer->branch) {{ $employer->branch->name }} @else N/A @endif {{ $employer->clients_count }} Clients {{ $employer->active ? 'Active' : 'Inactive' }} View
Staff by Department
@endsection @section('script') @endsection