@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 @if(in_array('projects',$modules))
@lang('modules.dashboard.upcomingPayments')
  • @lang('app.invoiceNo')
    @lang('app.amount')
    @lang('modules.dashboard.dueDate')
  • @forelse($upcomingInvoices as $key=>$invoice)
  • {{ number_format((float)$invoice->amountDue(), 2, '.', '') }}
  • @empty
  • @lang("messages.noUpcomingPayments")
  • @endforelse
@endif
@endsection