@extends('layouts.master') @section('title') {{ trans('general.dashboard') }} @endsection @section('content')
@if(Sentinel::hasAccess('dashboard.members_statistics'))
{{ trans_choice('general.registered',1) }}
{{ trans_choice('general.member',2) }}
{{ \App\Models\Member::count() }}
@endif @if(Sentinel::hasAccess('dashboard.tags_statistics'))
{{ trans_choice('general.total',1) }}
{{ trans_choice('general.tag',2) }}
{{ \App\Models\Tag::count() }}
@endif
@if(Sentinel::hasAccess('dashboard.contributions_statistics'))
{{ trans_choice('general.total',1) }}
{{ trans_choice('general.contribution',2) }}
@if(\App\Models\Setting::where('setting_key', 'currency_position')->first()->setting_value=='left') {{ \App\Models\Setting::where('setting_key', 'currency_symbol')->first()->setting_value }} {{ number_format(\App\Helpers\GeneralHelper::total_contributions(),2) }} @else {{ number_format(\App\Helpers\GeneralHelper::total_contributions(),2) }} {{ \App\Models\Setting::where('setting_key', 'currency_symbol')->first()->setting_value}} @endif
@endif
@if(Sentinel::hasAccess('dashboard.contributions_statistics'))
{{ trans_choice('general.total',1) }}
{{ trans_choice('general.pledge',2) }}
@if(\App\Models\Setting::where('setting_key', 'currency_position')->first()->setting_value=='left') {{ \App\Models\Setting::where('setting_key', 'currency_symbol')->first()->setting_value }} {{ number_format(\App\Helpers\GeneralHelper::total_pledges_payments(),2) }} @else {{ number_format(\App\Helpers\GeneralHelper::total_pledges_payments(),2) }} {{ \App\Models\Setting::where('setting_key', 'currency_symbol')->first()->setting_value}} @endif
@endif
@if(Sentinel::hasAccess('dashboard.finance_graph'))

{{trans_choice('general.income',1)}} {{trans_choice('general.overview',1)}}

@endif @if(Sentinel::hasAccess('dashboard.calendar'))

{{trans_choice('general.event',2)}} {{trans_choice('general.calendar',1)}}

@endif @endsection @section('footer-scripts') @endsection