@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']))
@lang('modules.update.newUpdate')
@endif @endif @if(!is_null($global->last_cron_run)) @if(\Carbon\Carbon::now()->diffInHours($global->last_cron_run) > 48)
@lang('messages.cronIsNotRunning')
@endif @else
@lang('messages.cronIsNotRunning')
@endif @if(!$progress['progress_completed'] && App::environment('codecanyon')) @include('admin.dashboard.get_started') @endif
@if(in_array('clients',$modules) && in_array('total_clients',$activeWidgets)) @endif @if(in_array('employees',$modules) && in_array('total_employees',$activeWidgets)) @endif @if(in_array('projects',$modules) && in_array('total_projects',$activeWidgets)) @endif @if(in_array('invoices',$modules) && in_array('total_unpaid_invoices',$activeWidgets)) @endif @if(in_array('timelogs',$modules) && in_array('total_hours_logged',$activeWidgets)) @endif @if(in_array('tasks',$modules) && in_array('total_pending_tasks',$activeWidgets)) @endif @if(in_array('attendance',$modules) && in_array('total_today_attendance',$activeWidgets)) @endif @if(in_array('tickets',$modules) && in_array('total_unresolved_tickets',$activeWidgets)) @endif
@if(in_array('payments',$modules) && 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(in_array('leaves',$modules) && in_array('settings_leaves',$activeWidgets))
@lang('modules.dashboard.settingsLeaves')
@endif @if(in_array('tickets',$modules) && 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(in_array('tasks',$modules) && 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(in_array('leads',$modules) && 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(in_array('projects',$modules) && 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(in_array('employees',$modules) && in_array('user_activity_timeline',$activeWidgets))
@lang('modules.dashboard.userActivityTimeline')
@forelse($userActivities as $key=>$activity)
user
{{ ucwords($activity->user->name) }} {{ $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') @endpush