@extends('layouts.app') @push('head-script') @endpush @section('page-title')

@lang($pageTitle)

@endsection @push('head-script') @endpush @section('content')
@if ($global->system_update == 1) @php($updateVersionInfo = \Froiden\Envato\Functions\EnvatoUpdate::updateVersionInfo()) @if (isset($updateVersionInfo['lastVersion'])) @endif @endif @if (!is_null($global->last_cron_run)) @if (\Carbon\Carbon::now()->diffInHours($global->last_cron_run) > 48) @endif @else @endif @if (!$progress['progress_completed'] && App::environment('codecanyon')) @endif
@if (hasAccessOf('clients')['is_read'] && in_array('total_clients', $activeWidgets)) @endif @if (hasAccessOf('employees')['is_read'] && in_array('total_employees', $activeWidgets)) @endif @if (hasAccessOf('projects')['is_read'] && in_array('total_projects', $activeWidgets)) @endif @if (hasAccessOf('invoices')['is_read'] && in_array('total_unpaid_invoices', $activeWidgets)) @endif @if (hasAccessOf('time_logs')['is_read'] && in_array('total_hours_logged', $activeWidgets)) @endif @if (hasAccessOf('tickets')['is_read'] && in_array('total_unresolved_tickets', $activeWidgets)) @endif @if (hasAccessOf('attendance')['is_read'] && in_array('total_today_attendance', $activeWidgets)) @endif {{-- @if (in_array('tasks', $modules) && in_array('total_pending_tasks', $activeWidgets)) --}} {{-- @endif --}} {{-- --}}
{{--

{{ __('app.menu.employees') }}

@lang('app.selectDateRange')
@lang('app.to')
{!! $dataTable->table(['class' => 'table table-bordered table-hover toggle-circle default footable-loaded footable']) !!}
--}}
{{-- @if (hasAccessOf('payments')['is_read'] && in_array('recent_earnings', $activeWidgets))

@lang('modules.dashboard.recentEarnings')

@if (!empty(json_decode($chartData)))
@lang('app.note'): @lang('messages.earningChartNote')
@else
@lang('messages.noEarningRecordFound')
@endif
@endif --}}
@if (hasAccessOf('manage_leaves')['is_write'])
@lang('modules.dashboard.settingsLeaves')
@endif @if (hasAccessOf('tickets')['is_read'] && in_array('new_tickets', $activeWidgets))
@lang('modules.dashboard.newTickets')
    @forelse($newTickets as $key=>$newTicket)
  • {{ $key + 1 }}. {{ ucfirst($newTicket->subject) }} {{ ucwords($newTicket->created_at->diffForHumans()) }}
  • @empty
  • @lang('messages.noTicketFound')
  • @endforelse
@endif
@if($user->hasRole('admin') || $user->hasRole('project_manager'))
Resources (Billable/Non-Billable)
{!! $dataTable->table(['class' => 'table table-bordered table-striped w-100'], true) !!}
Projects (Billable/Non-Billable)
D T Row Index Project Billable Hours Non-Billable Hours Total Hours Action
@endif
@if (hasAccessOf('tasks')['is_read'] && in_array('overdue_tasks', $activeWidgets))
@lang('modules.dashboard.overdueTasks')
  • @lang('app.title') @lang('modules.dashboard.dueDate')
  • @forelse($pendingTasks as $key=>$task) @if ((!is_null($task->project_id) && !is_null($task->project)) || is_null($task->project_id))
  • {!! $key + 1 . '. ' . ucfirst($task->heading) . '' !!} @if (!is_null($task->project_id) && !is_null($task->project)) {{ ucwords($task->project->project_name) }} @endif
  • @endif @empty
  • @lang('messages.noOpenTasks')
  • @endforelse
@endif @if (hasAccessOf('leads')['is_read'] && in_array('pending_follow_up', $activeWidgets))
@lang('modules.dashboard.pendingFollowUp')
  • @lang('app.title') @lang('modules.dashboard.followUpDate')
  • @forelse($pendingLeadFollowUps as $key=>$follows)
  • @empty
  • @lang('messages.noPendingLeadFollowUps')
  • @endforelse
@endif
@if (hasAccessOf('projects')['is_read'] && in_array('project_activity_timeline', $activeWidgets))
@lang('modules.dashboard.projectActivityTimeline')
@forelse($projectActivities as $activ)
{{ ucwords($activ->project->project_name) }} : {{ $activ->activity }}
{{ $activ->created_at->diffForHumans() }}
@empty
@lang('messages.noProjectActivity')
@endforelse
@endif @if (hasAccessOf('employees')['is_read'] && in_array('user_activity_timeline', $activeWidgets))
@lang('modules.dashboard.userActivityTimeline')
@forelse($userActivities as $key=>$activity)
@if (isset($activity->user->image_url)) user @endif
@if (isset($activity->user->name)) {{ ucwords($activity->user->name) }} @endif {{ $activity->created_at->diffForHumans() }}

{!! ucfirst($activity->activity) !!}

@if (count($userActivities) > $key + 1)
@endif @empty
@lang('messages.noActivityByThisUser')
@endforelse
@endif
{{-- Ajax Modal --}} {{-- Ajax Modal Ends --}} {{-- Ajax Modal --}} {{-- Ajax Modal Ends --}}
@endsection @push('footer-script') @if($global->locale == 'en') @elseif($global->locale == 'br') @else @endif {!! $dataTable->scripts() !!} {{-- {!! $projectDataTabel->html()->scripts() !!} --}} {{-- --}} {{-- --}} @endpush