@extends('layouts.base') @section('content')

Today


{{ $today->format('jS \O\f F, Y') }}

{{ $today->dayName }}

Login Time {{ $login_time->format('h.i A') }}

@can('dashboard_company_news') @if (count($newsEvents) > 0)
{{ $newsEvents[0]->title }}
{{ $newsEvents[0]->description }}
@endif @endif @canany(['dashboard_approval_count', 'dashboard_notification_count','dashboard_pending_leave_count'])
@can('dashboard_approval_count')

{{ $approvals }}

Approvals

View Approvals
@endif @can('dashboard_notification_count')

{{ Auth::user()->unreadNotifications()->count() }}

Notifications

View Notifications
@endif @can('dashboard_pending_leave_count')

{{ $pendingLeaves }}

Pending Leaves Request

View Pending Leaves
@endif
@endcan @canany(['dashboard_attendance_summary', 'dashboard_superior_detail', 'dashboard_subordinate_details', 'dashboard_own_leave_summary', 'dashboard_holiday_list'])
@can('dashboard_attendance_summary')
Attendance Detail {{ $activeEmployees }}
Present {{ $presentEmployees }}
Leave Requested {{ $leavedEmployees }}
Absents {{ $activeEmployees - ($presentEmployees + $leavedEmployees) }}
@endcan @canany(['dashboard_superior_detail', 'dashboard_subordinate_details'])
@can('dashboard_superior_detail') @if (isset($superiorDetail) && isset($superiorDetail[0]))
My Superior

{{ $superiorDetail[0]->calling_name }}
{{ $superiorDetail[0]->title }} {{ $superiorDetail[0]->first_name }} {{ $superiorDetail[0]->last_name }}
Contact - {{ $superiorDetail[0]->contact_no }}

@endif @endcan @can('dashboard_subordinate_details') @endcan
@endcan @canany(['dashboard_own_leave_summary', 'dashboard_holiday_list'])
@if (count($leaveAllocations) > 0) @can('dashboard_own_leave_summary')
@foreach ($leaveAllocations as $leaveAllocation) @if ($leaveAllocation->leave_type == 1) @elseif($leaveAllocation->leave_type == 2) @elseif($leaveAllocation->leave_type == 3) @elseif($leaveAllocation->leave_type == 4) @endif @endforeach
Leave Summary - {{ date('Y') }}
Leave Type Allocated Leaves Taken Leaves Balance Leaves
Annual Leave Casual Leave Sick LeaveLieu Leave {{ $leaveAllocation->number_of_days }} {{ $leaveAllocation->taken_days }} {{ $leaveAllocation->balance_days }}
@endcan @endif @can('dashboard_holiday_list') @endcan
@endcan
@endcan @canany(['dashboard_total_employee_count', 'dashboard_new_joiners_count', 'dashboard_resigned_employee_count', 'dashboard_employee_category_wise_count', 'dashboard_employee_location_wise_count', 'dashboard_employee_designation_wise_count', 'dashboard_employee_department_wise_count'])
@canany(['dashboard_total_employee_count', 'dashboard_new_joiners_count', 'dashboard_resigned_employee_count'])
@can('dashboard_total_employee_count')

{{ $totalEmployees }}

Total Employees

View Employees
@endcan @can('dashboard_new_joiners_count')

{{ $newEmployees }}

New Joiners

View New Joiners
@endcan @can('dashboard_resigned_employee_count')

{{ $resignedEmployees }}

Resigned Employees

View Resigned
@endcan
@endcan @canany(['dashboard_employee_location_wise_count', 'dashboard_employee_designation_wise_count', 'dashboard_employee_department_wise_count', 'dashboard_employee_category_wise_count'])
@can('dashboard_employee_category_wise_count')
@foreach ($employeeCategoryWise as $category) @endforeach
Category Count
{{ $category->description }} {{ $category->total }}
@endcan @can('dashboard_employee_designation_wise_count')
@foreach ($employeeDesignationWise as $designation) @endforeach
Designation Count
{{ $designation->description }} {{ $designation->total }}
@endcan @can('dashboard_employee_designation_wise_count')
@foreach ($employeeDepartmentWise as $department) @endforeach
Department Count
{{ $department->description }} {{ $department->total }}
@endcan @can('dashboard_employee_location_wise_count')
@for ($i = 1; $i <= 4; $i++) @endfor @foreach ($employeeLocationWise->chunk(4) as $chunk) @foreach ($chunk as $location) @endforeach @if ($chunk->count() < 4) @for ($i = 0; $i < (4 - $chunk->count()); $i++) @endfor @endif @endforeach
Location Count
{{ $location->location_name }} {{ $location->total }}
@endcan
@endcan
@endcan @canany(['dashboard_employee_birthday_list', 'dashboard_employee_birthday_list_weekly', 'dashboard_employee_birthday_list_monthly'])
Birthday Lists
@can('dashboard_employee_birthday_list')

Today's birthday list

@foreach ($employeeBirthdayList['today'] as $cb)
@if (!empty($cb->photo)) @endif
{{ $cb->first_name }} {{ $cb->dob }}
{{ ucwords(strtolower($cb->title)) }} {{ ucwords(strtolower($cb->first_name)) }} {{ ucwords(strtolower($cb->last_name)) }}.
Contact - {{ $cb->contact_no }} {{ $cb->contact_no2 }}
{{-- Address - {{ucwords(strtolower($cb->customerAddress[0]->address_line1))}} {{ucwords(strtolower($cb->customerAddress[0]->address_line2))}} {{ucwords(strtolower($cb->customerAddress[0]->address_line3))}} --}}
{{ \Carbon\Carbon::parse($cb->dob)->diffForHumans() }}
@endforeach
@endcan @can('dashboard_employee_birthday_list_weekly')

This week’s birthday list

@foreach ($employeeBirthdayList['this_week'] as $cb)
@if (!empty($cb->photo)) @endif
{{ $cb->first_name }} {{ $cb->dob }}
{{ ucwords(strtolower($cb->title)) }} {{ ucwords(strtolower($cb->first_name)) }} {{ ucwords(strtolower($cb->last_name)) }}.
Contact - {{ $cb->contact_no }} {{ $cb->contact_no2 }}
{{-- Address - {{ucwords(strtolower($cb->customerAddress[0]->address_line1))}} {{ucwords(strtolower($cb->customerAddress[0]->address_line2))}} {{ucwords(strtolower($cb->customerAddress[0]->address_line3))}} --}}
{{ \Carbon\Carbon::parse($cb->dob)->diffForHumans() }}
@endforeach
@endcan @can('dashboard_employee_birthday_list_monthly')

This month's birthday list

@foreach ($employeeBirthdayList['this_month'] as $cb)
@if (!empty($cb->photo)) @endif
{{ $cb->first_name }} {{ $cb->dob }}
{{ ucwords(strtolower($cb->title)) }} {{ ucwords(strtolower($cb->first_name)) }} {{ ucwords(strtolower($cb->last_name)) }}.
Contact - {{ $cb->contact_no }} {{ $cb->contact_no2 }}
{{-- Address - {{ucwords(strtolower($cb->customerAddress[0]->address_line1))}} {{ucwords(strtolower($cb->customerAddress[0]->address_line2))}} {{ucwords(strtolower($cb->customerAddress[0]->address_line3))}} --}}
{{ \Carbon\Carbon::parse($cb->dob)->diffForHumans() }}
@endforeach
@endcan
@endcan
@canany(['dashboard_recent_salary_process_list'])

Salary Payments (Processed Salary Recent List)

Month Basic Salary Allowances Over Time Payments Gross Salary Deductions Tax No Pay Net Salary EPF (Employee) EPF (Company) ETF
@endcan
@endsection @section('custom_scripts') @endsection