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

{{ __($pageTitle) }}

@if(session('impersonate')) @endif
@endsection @push('head-script') @endpush @section('content')
@if(session('impersonate'))
{{__('messages.impersonate')}} {{$company->company_name}}
@endif @if($global->status == 'license_expired')
{{ $superadmin->expired_message }}
@endif @if($company->package->default == 'yes' || $company->package->default == 'trial') @if($packageSetting && !$packageSetting->all_packages)
@lang('messages.purchasePackageMessage')
@endif @endif @if($company->show_update_popup == 1 && $paymentCredential->stripe_status == 'active')
@lang('messages.stripeUpdatePopup')
@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('tasks',$modules) && in_array('total_pending_tasks',$activeWidgets)) @endif @if(in_array('timelogs',$modules) && in_array('total_hours_logged',$activeWidgets)) @endif @if(in_array('tasks',$modules) && in_array('completed_tasks',$activeWidgets)) @endif @if(in_array('attendance',$modules) && in_array('total_today_attendance',$activeWidgets)) @endif @if(in_array('tickets',$modules) && in_array('total_resolved_tickets',$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')

@lang('app.note'): @lang('messages.earningChartNote')
@endif
@if(in_array('leaves',$modules) && in_array('settings_leaves',$activeWidgets))
@lang('app.menu.leaves')
@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.noTimeline")
@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