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

{{ Auth::user()->name }}

@if(paymentProcessors())
@include('icons.package', ['class' => 'text-muted fill-current width-4 height-4'])
@else
@include('icons.email', ['class' => 'text-muted fill-current width-4 height-4'])
{{ Auth::user()->email }}
@endif

{{ __('Overview') }}

@php $cards = [ 'users' => [ 'title' => 'Links', 'value' => $linksCount, 'route' => 'links', 'icon' => 'link' ], [ 'title' => 'Spaces', 'value' => Auth::user()->spacesCount, 'route' => 'spaces', 'icon' => 'workspaces' ], [ 'title' => 'Domains', 'value' => Auth::user()->domainsCount, 'route' => 'domains', 'icon' => 'website' ], [ 'title' => 'Pixels', 'value' => Auth::user()->pixelsCount, 'route' => 'pixels', 'icon' => 'filter-center-focus' ] ]; @endphp @foreach($cards as $card)
@include('icons.' . $card['icon'], ['class' => 'fill-current width-5 height-5'])
{{ number_format($card['value'], 0, __('.'), __(',')) }}
@endforeach

{{ __('Activity') }}

{{ __('Latest links') }}
@if(count($latestLinks) == 0) {{ __('No data') }}. @else
@foreach($latestLinks as $link)
@if($link->title){{ $link->title }}@else{{ str_replace(['http://', 'https://'], '', $link->url) }}@endif
@include('shared.buttons.copy-link', ['class' => 'btn-sm text-primary'])
@include('links.partials.menu')
@endforeach
@endif
@if(count($latestLinks) > 0) @endif
{{ __('Popular links') }}
@if(count($popularLinks) == 0) {{ __('No data') }}. @else
@foreach($popularLinks as $link)
@if($link->title){{ $link->title }}@else{{ str_replace(['http://', 'https://'], '', $link->url) }}@endif
@endforeach
@endif
@if(count($popularLinks) > 0) @endif

{{ __('More') }}

@include('icons.workspaces', ['class' => 'fill-current width-6 height-6'])
{{ __('Space') }}
{{ __('Create a new space.') }}
@include('icons.website', ['class' => 'fill-current width-6 height-6'])
{{ __('Domain') }}
{{ __('Add a new domain.') }}
@include('icons.filter-center-focus', ['class' => 'fill-current width-6 height-6'])
{{ __('Pixel') }}
{{ __('Integrate a new pixel.') }}
@include('shared.modals.share-link') @endsection @include('shared.sidebars.user')