@extends('layouts.master') @section('title') @lang('translation.dashboard') @endsection @section('css') @endsection @section('content') {{-- @component('components.breadcrumb') @slot('li_1') Dashboards @endslot @slot('title') Dashboard @endslot @endcomponent --}}
{{-- {{ Carbon\Carbon::now()->addMonth()->format("Y-m-d") }} --}} @can('view dashboard widgets') @include('dashboard.stats') @include('dashboard.widgets') @endcan @if (setting('smartolt_enabled') === 'enabled') @include('dashboard.smartoltwidgets') @endif {{-- @if(isset($updateData['version']) && isUpdateAvailable($updateData['version'], env('VERSION_INSTALLED'))) @include('dashboard.update') @endif --}} @php $smsBalance = getSmsBalance(); $balanceFunctionAvailable = ($smsBalance !== null); @endphp
@if ($balanceFunctionAvailable)
@include('dashboard.smsbalance', ['smsBalance' => $smsBalance])
@endif @hasrole('super-admin')
@include('dashboard.license')
@endhasrole
@include('dashboard.tasks')

System resources

@include('dashboard.server_resources') @if(auth()->user()->can('view dashboard widgets') && auth()->user()->can('view financial statistics'))

Financial overview

@include('dashboard.revenue_overview') @endif
@can('view dashboard widgets')
@can('view financial statistics')

4 months revenue

@endcan

Service Utilization

@endcan @php $sumpaid = []; $months = []; foreach($transactions as $transaction){ $months[] = $transaction->months; $sumpaid[] = $transaction->sum; } @endphp @endsection @section('script') {{-- --}} @endsection