@extends('layouts.app') @section('site_title', formatTitle([__('Dashboard'), config('settings.title')])) @section('content')
@include('admin.dashboard.header')

{{ __('Overview') }}

@php $cards = [ 'users' => [ 'title' => 'Users', 'value' => $stats['users'], 'route' => 'admin.users', 'icon' => 'icons.users' ], [ 'title' => 'Plans', 'value' => $stats['plans'], 'route' => 'admin.plans', 'icon' => 'icons.package' ], [ 'title' => 'Payments', 'value' => $stats['payments'], 'route' => 'admin.payments', 'icon' => 'icons.card' ], [ 'title' => 'Pages', 'value' => $stats['pages'], 'route' => 'admin.pages', 'icon' => 'icons.pages' ], [ 'title' => 'Links', 'value' => $stats['links'], 'route' => 'admin.links', 'icon' => 'icons.link' ], [ 'title' => 'Spaces', 'value' => $stats['spaces'], 'route' => 'admin.spaces', 'icon' => 'icons.space' ], [ 'title' => 'Domains', 'value' => $stats['domains'], 'route' => 'admin.domains', 'icon' => 'icons.domain' ], [ 'title' => 'Pixels', 'value' => $stats['pixels'], 'route' => 'admin.pixels', 'icon' => 'icons.pixel' ] ]; @endphp @foreach($cards as $card) @endforeach

{{ __('Activity') }}

{{ __('Latest users') }}
@if(count($users) == 0) {{ __('No data') }}. @else
@foreach($users as $user)
{{ $user->email }}
@include('admin.users.partials.menu', ['user' => $user])
@endforeach
@endif
@if(count($users) > 0) @endif
@if(paymentProcessors())
{{ __('Latest payments') }}
@if(count($payments) == 0) {{ __('No data') }}. @else
@foreach($payments as $payment)
@if($payment->status == 'completed') {{ __('Completed') }} @elseif($payment->status == 'pending') {{ __('Pending') }} @else {{ __('Cancelled') }} @endif
{{ $payment->plan->name }}
@include('account.payments.partials.menu')
@endforeach
@endif
@if(count($payments) > 0) @endif
@else
{{ __('Latest links') }}
@if(count($links) == 0) {{ __('No data') }}. @else
@foreach($links as $link)
@if($link->title){{ $link->title }}@else{{ str_replace(['http://', 'https://'], '', $link->url) }}@endif
@include('links.partials.menu')
@endforeach
@endif
@if(count($links) > 0) @endif
@endif

{{ __('More') }}

@include('icons.website', ['class' => 'fill-current width-6 height-6'])
@include('icons.book', ['class' => 'fill-current width-6 height-6'])
{{ __('Documentation') }}
{{ __('Read the documentation.') }}
@include('icons.history', ['class' => 'fill-current width-6 height-6'])
{{ __('Changelog') }}
{{ __('See what\'s new.') }}
@include('shared.modals.share-link') @endsection @include('admin.sidebar')