@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
| 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 }}% |
| Name | Position | Department | Branch | Status | Action |
|---|---|---|---|---|---|
|
@if($staff->staff_picture)
@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 |
| Name | Contact | Branch | Clients | Status | Action |
|---|---|---|---|---|---|
|
@if($employer->logo)
{{ 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 |