@extends('layouts.client-app') @section('page-title')

{{ __($pageTitle) }}

@endsection @push('head-script') @endpush @section('content')
@if(in_array('projects',$modules))
@lang('modules.dashboard.totalProjects')
{{ $counts->totalProjects }}
@endif @if(in_array('tickets',$modules))
@lang('modules.tickets.totalUnresolvedTickets')
{{ $counts->totalUnResolvedTickets }}
@endif @if(in_array('invoices',$modules))
@lang('modules.dashboard.totalPaidAmount')
{{ floor($counts->totalPaidAmount) }}
@lang('modules.dashboard.totalOutstandingAmount')
{{ floor($counts->totalUnpaidAmount) }}
@endif
@if(in_array('projects',$modules))
@lang("modules.dashboard.projectActivityTimeline")
@foreach($projectActivities as $activity)
{{ ucwords($activity->project_name) }}: {{ $activity->activity }}
{{ $activity->created_at->timezone($global->timezone)->diffForHumans() }}
@endforeach
@endif
@endsection