2021-04-16 01:00:00 +02:00
|
|
|
|
@extends('layouts.sidebar')
|
|
|
|
|
|
2022-11-11 19:11:15 +01:00
|
|
|
|
|
2021-04-16 01:00:00 +02:00
|
|
|
|
@section('content')
|
2023-04-26 15:44:39 +02:00
|
|
|
|
<div class="conatiner-fluid content-inner mt-n5 py-0">
|
|
|
|
|
<div class="row">
|
|
|
|
|
|
|
|
|
|
<div class="col-lg-12">
|
|
|
|
|
<div class="card rounded">
|
|
|
|
|
<div class="card-body">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-sm-12">
|
|
|
|
|
|
2023-06-04 23:18:31 +02:00
|
|
|
|
<h3 class="mb-4"><i class="bi bi-menu-up"></i> {{__('messages.Dashboard')}}</h3>
|
2023-04-26 15:44:39 +02:00
|
|
|
|
|
|
|
|
|
<section class="mb-3 text-center p-4 w-full">
|
|
|
|
|
<div class=" d-flex">
|
|
|
|
|
|
2023-06-04 23:18:31 +02:00
|
|
|
|
<div class='p-2 h6'><i class="bi bi-link"></i> {{__('messages.Total Links:')}} <span class='text-primary'>{{ $links }} </span></div>
|
2023-04-26 15:44:39 +02:00
|
|
|
|
|
2023-06-04 23:18:31 +02:00
|
|
|
|
<div class='p-2 h6'><i class="bi bi-eye"></i> {{__('messages.Link Clicks:')}} <span class='text-primary'>{{ $clicks }}</span></div>
|
2023-04-26 15:44:39 +02:00
|
|
|
|
</div>
|
|
|
|
|
<div class='text-center w-100'>
|
2023-06-04 23:18:31 +02:00
|
|
|
|
<a href="{{ url('/studio/links') }}">{{__('messages.View/Edit Links')}}</a>
|
2023-04-26 15:44:39 +02:00
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div class='w-100 text-left'>
|
2023-06-04 23:18:31 +02:00
|
|
|
|
<h6><i class="bi bi-sort-up"></i> {{__('messages.Top Links:')}}</h6>
|
2023-04-26 15:44:39 +02:00
|
|
|
|
|
|
|
|
|
@php $i = 0; @endphp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="bd-example" >
|
|
|
|
|
<ol class="list-group list-group-numbered" style="text-align: left;">
|
2023-05-25 18:46:33 +02:00
|
|
|
|
@if($toplinks == "[]")
|
|
|
|
|
<div class="container">
|
|
|
|
|
<div class="row justify-content-center mt-3">
|
|
|
|
|
<div class="col-6 text-center">
|
2023-06-04 23:18:31 +02:00
|
|
|
|
<p class="p-2">{{__('messages.You haven’t added any links yet')}}</p>
|
2023-05-25 18:46:33 +02:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@else
|
2023-04-26 15:44:39 +02:00
|
|
|
|
@foreach($toplinks as $link)
|
|
|
|
|
@php $linkName = str_replace('default ','',$link->name) @endphp
|
|
|
|
|
@php $i++; @endphp
|
|
|
|
|
|
|
|
|
|
@if($link->name !== "phone" && $link->name !== 'heading' && $link->button_id !== 96)
|
|
|
|
|
<li class="list-group-item d-flex justify-content-between align-items-start">
|
|
|
|
|
<div class="ms-2 me-auto text-truncate">
|
|
|
|
|
<div class="fw-bold text-truncate">{{ $link->title }}</div>
|
|
|
|
|
{{ $link->link }}
|
|
|
|
|
</div>
|
2023-06-04 23:18:31 +02:00
|
|
|
|
<span class="badge bg-primary rounded-pill p-2">{{ $link->click_number }} - {{__('messages.clicks')}}</span>
|
2023-04-26 15:44:39 +02:00
|
|
|
|
</li>
|
|
|
|
|
@endif
|
|
|
|
|
@endforeach
|
2023-05-25 18:46:33 +02:00
|
|
|
|
@endif
|
2023-04-26 15:44:39 +02:00
|
|
|
|
</ol>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="col-lg-12">
|
|
|
|
|
<div class="card rounded">
|
|
|
|
|
<div class="card-body">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-sm-12">
|
2021-04-16 01:00:00 +02:00
|
|
|
|
|
2023-05-05 21:06:37 +02:00
|
|
|
|
@if(auth()->user()->role == 'admin' && !config('linkstack.single_user_mode'))
|
2022-11-11 19:11:15 +01:00
|
|
|
|
<!-- Section: Design Block -->
|
2023-04-26 15:44:39 +02:00
|
|
|
|
<section class="mb-3 text-gray-800 text-center p-4 w-full">
|
2023-06-04 23:18:31 +02:00
|
|
|
|
<div class='font-weight-bold text-left h3'>{{__('messages.Site statistics:')}}</div><br>
|
2022-11-11 19:11:15 +01:00
|
|
|
|
<div class="d-flex flex-wrap justify-content-around">
|
|
|
|
|
|
|
|
|
|
<div class="p-2">
|
|
|
|
|
<h3 class="text-primary"><strong><i class="bi bi-share-fill"> {{ $siteLinks }} </i></strong></h3>
|
2023-06-04 23:18:31 +02:00
|
|
|
|
<span class="text-muted">{{__('messages.Total links')}}</span>
|
2022-11-11 19:11:15 +01:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="p-2">
|
|
|
|
|
<h3 class="text-primary"><strong><i class="bi bi-eye-fill"> {{ $siteClicks }} </i></strong></h3>
|
2023-06-04 23:18:31 +02:00
|
|
|
|
<span class="text-muted">{{__('messages.Total clicks')}}</span>
|
2022-11-11 19:11:15 +01:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="p-2">
|
|
|
|
|
<h3 class="text-primary"><strong><i class="bi bi bi-person-fill"> {{ $userNumber }}</i></strong></h3>
|
2023-06-04 23:18:31 +02:00
|
|
|
|
<span class="text-muted">{{__('messages.Total users')}}</span>
|
2022-11-11 19:11:15 +01:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
|
2023-04-26 15:44:39 +02:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="col-lg-12">
|
|
|
|
|
<div class="card rounded">
|
|
|
|
|
<div class="card-body">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-sm-12">
|
|
|
|
|
|
|
|
|
|
<!-- Section: Design Block -->
|
|
|
|
|
<section class="mb-3 text-gray-800 text-center p-4 w-full">
|
2023-06-04 23:18:31 +02:00
|
|
|
|
<div class='font-weight-bold text-left h3'>{{__('messages.Registrations:')}}</div><br>
|
2023-04-26 15:44:39 +02:00
|
|
|
|
<div class="d-flex flex-wrap justify-content-around">
|
2022-11-11 19:11:15 +01:00
|
|
|
|
|
2023-04-26 15:44:39 +02:00
|
|
|
|
<div class="p-2">
|
|
|
|
|
<h3 class="text-primary"><strong> {{ $lastMonthCount }} </i></strong></h3>
|
2023-06-04 23:18:31 +02:00
|
|
|
|
<span class="text-muted">{{__('messages.Last 30 days')}}</span>
|
2023-04-26 15:44:39 +02:00
|
|
|
|
</div>
|
2022-11-11 19:11:15 +01:00
|
|
|
|
|
2023-04-26 15:44:39 +02:00
|
|
|
|
<div class="p-2">
|
|
|
|
|
<h3 class="text-primary"><strong> {{ $lastWeekCount }} </i></strong></h3>
|
2023-06-04 23:18:31 +02:00
|
|
|
|
<span class="text-muted">{{__('messages.Last 7 days')}}</span>
|
2023-04-26 15:44:39 +02:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="p-2">
|
|
|
|
|
<h3 class="text-primary"><strong> {{ $last24HrsCount }}</i></strong></h3>
|
2023-06-04 23:18:31 +02:00
|
|
|
|
<span class="text-muted">{{__('messages.Last 24 hours')}}</span>
|
2023-04-26 15:44:39 +02:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="col-lg-12">
|
|
|
|
|
<div class="card rounded">
|
|
|
|
|
<div class="card-body">
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-sm-12">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Section: Design Block -->
|
|
|
|
|
<section class="mb-3 text-gray-800 text-center p-4 w-full">
|
2023-06-04 23:18:31 +02:00
|
|
|
|
<div class='font-weight-bold text-left h3'>{{__('messages.Active users:')}}</div><br>
|
2023-04-26 15:44:39 +02:00
|
|
|
|
<div class="d-flex flex-wrap justify-content-around">
|
|
|
|
|
|
|
|
|
|
<div class="p-2">
|
|
|
|
|
<h3 class="text-primary"><strong> {{ $updatedLast30DaysCount }} </i></strong></h3>
|
2023-06-04 23:18:31 +02:00
|
|
|
|
<span class="text-muted">{{__('messages.Last 30 days')}}</span>
|
2023-04-26 15:44:39 +02:00
|
|
|
|
</div>
|
2022-11-11 19:11:15 +01:00
|
|
|
|
|
2023-04-26 15:44:39 +02:00
|
|
|
|
<div class="p-2">
|
|
|
|
|
<h3 class="text-primary"><strong> {{ $updatedLast7DaysCount }} </i></strong></h3>
|
2023-06-04 23:18:31 +02:00
|
|
|
|
<span class="text-muted">{{__('messages.Last 7 days')}}</span>
|
2023-04-26 15:44:39 +02:00
|
|
|
|
</div>
|
2022-11-11 19:11:15 +01:00
|
|
|
|
|
2023-04-26 15:44:39 +02:00
|
|
|
|
<div class="p-2">
|
|
|
|
|
<h3 class="text-primary"><strong> {{ $updatedLast24HrsCount }}</i></strong></h3>
|
2023-06-04 23:18:31 +02:00
|
|
|
|
<span class="text-muted">{{__('messages.Last 24 hours')}}</span>
|
2023-04-26 15:44:39 +02:00
|
|
|
|
</div>
|
2022-11-11 19:11:15 +01:00
|
|
|
|
|
2023-04-26 15:44:39 +02:00
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@endif
|
2021-04-16 01:00:00 +02:00
|
|
|
|
|
2023-04-26 15:44:39 +02:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@endsection
|