@if(in_array('clients',$modules) && in_array('total_clients',$activeWidgets))
@endif
@if(in_array('leads',$modules) && in_array('total_leads',$activeWidgets))
@endif
@if(in_array('leads',$modules) && in_array('total_lead_conversions',$activeWidgets))
@endif
@if(in_array('contracts',$modules) && in_array('total_contracts_generated',$activeWidgets))
@endif
@if(in_array('contracts',$modules) && in_array('total_contracts_signed',$activeWidgets))
@endif
@if(in_array('payments',$modules) && in_array('client_wise_earnings',$activeWidgets))
@lang('modules.dashboard.clientWiseEarnings')
@if(!empty(json_decode($chartData)))
@lang('app.note'): @lang('messages.earningChartNote')
@else
@lang('messages.noEarningRecordFound')
@endif
@endif
@if(in_array('timelogs',$modules) && in_array('client_wise_timelogs',$activeWidgets))
@lang('modules.dashboard.clientWiseTimelogs')
@if(!empty(json_decode($clientWiseTimelogChartData)))
@else
@lang('messages.noTimeLogsFound')
@endif
@endif
@if(in_array('leads',$modules) && in_array('lead_vs_status',$activeWidgets))
@if(!empty(json_decode($leadVsStatus)))
@else
@lang('messages.noLeadsFound')
@endif
@endif
@if(in_array('leads',$modules) && in_array('lead_vs_source',$activeWidgets))
@if(!empty(json_decode($leadVsSource)))
@else
@lang('messages.noLeadsFound')
@endif
@endif
@if(in_array('clients',$modules) && in_array('latest_client',$activeWidgets))
@lang('modules.dashboard.latestClient')
@forelse($latestClient as $key=>$activity)
@if(count($latestClient) > ($key+1))
@endif
@empty
@lang('messages.noLatestClientFound')
@endforelse
@endif
@if(in_array('clients',$modules) && in_array('recent_login_activities',$activeWidgets))
@lang('modules.dashboard.recentLoginActivities')
@forelse($recentLoginActivities as $key=>$activity)
{{ ucwords($activity->name) }}
@lang('app.last') @lang('app.login') {{ $activity->last_login ? \Carbon\Carbon::parse($activity->last_login)->diffForHumans(): '--' }}
@if(count($recentLoginActivities) > ($key+1))
@endif
@empty
@lang('messages.noLoginActivityFound')
@endforelse
@endif