TanchoToplineCargo/resources/views/backend/dashboard.blade.php
2024-06-04 16:10:03 +05:45

247 lines
12 KiB
PHP

@extends('backend.template')
@push('css')
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/2.0.5/css/dataTables.dataTables.css" />
@endpush
@section('content')
<div class="row">
<div class="col-xl-3 col-md-6">
<!-- card -->
<div class="card card-animate">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="flex-grow-1 overflow-hidden">
<p class="text-uppercase fw-medium text-muted text-truncate mb-0"> Articles</p>
</div>
</div>
<div class="d-flex align-items-end justify-content-between mt-4">
<div>
<h4 class="fs-22 fw-semibold ff-secondary mb-4"><span class="counter-value"
data-target="{{ MPCMS::showCount('companyarticles') }}"></span></h4>
<a href="{{ route('companyarticles.index') }}" class="text-decoration-underline">View all</a>
</div>
<div class="avatar-sm flex-shrink-0">
<span class="avatar-title bg-success-subtle rounded fs-3">
<i class="bx bx-collection text-success"></i>
</span>
</div>
</div>
</div><!-- end card body -->
</div><!-- end card -->
</div><!-- end col -->
<div class="col-xl-3 col-md-6">
<!-- card -->
<div class="card card-animate">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="flex-grow-1 overflow-hidden">
<p class="text-uppercase fw-medium text-muted text-truncate mb-0">Teams</p>
</div>
</div>
<div class="d-flex align-items-end justify-content-between mt-4">
<div>
<h4 class="fs-22 fw-semibold ff-secondary mb-4"><span class="counter-value"
data-target="{{ MPCMS::showCount('teams') }}"></span></h4>
<a href="{{ route('teams.index') }}" class="text-decoration-underline">View all</a>
</div>
<div class="avatar-sm flex-shrink-0">
<span class="avatar-title bg-info-subtle rounded fs-3">
<i class="bx bxl-microsoft-teams text-info"></i>
</span>
</div>
</div>
</div><!-- end card body -->
</div><!-- end card -->
</div><!-- end col -->
<div class="col-xl-3 col-md-6">
<!-- card -->
<div class="card card-animate">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="flex-grow-1 overflow-hidden">
<p class="text-uppercase fw-medium text-muted text-truncate mb-0"> Sliders </p>
</div>
{{-- <div class="flex-shrink-0">
<h5 class="text-muted fs-14 mb-0">
+0.00 %
</h5>
</div> --}}
</div>
<div class="d-flex align-items-end justify-content-between mt-4">
<div>
<h4 class="fs-22 fw-semibold ff-secondary mb-4"><span class="counter-value"
data-target="{{ MPCMS::showCount('sliders') }}"></span></h4>
<a href="{{ route('sliders.index') }}" class="text-decoration-underline">View all</a>
</div>
<div class="avatar-sm flex-shrink-0">
<span class="avatar-title bg-info-subtle rounded fs-3">
<i class="las la-backward text-info"></i>
</span>
</div>
</div>
</div><!-- end card body -->
</div><!-- end card -->
</div><!-- end col -->
<div class="col-xl-3 col-md-6">
<!-- card -->
<div class="card card-animate">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="flex-grow-1 overflow-hidden">
<p class="text-uppercase fw-medium text-muted text-truncate mb-0"> Subscribers </p>
</div>
{{-- <div class="flex-shrink-0">
<h5 class="text-muted fs-14 mb-0">
+0.00 %
</h5>
</div> --}}
</div>
<div class="d-flex align-items-end justify-content-between mt-4">
<div>
<h4 class="fs-22 fw-semibold ff-secondary mb-4"><span class="counter-value"
data-target="{{ MPCMS::showCount('subscribers') }}"></span></h4>
<a href="{{ route('subscribers.index') }}" class="text-decoration-underline">View all</a>
</div>
<div class="avatar-sm flex-shrink-0">
<span class="avatar-title bg-info-subtle rounded fs-3">
<i class="las la-database text-info"></i>
</span>
</div>
</div>
</div><!-- end card body -->
</div><!-- end card -->
</div><!-- end col -->
</div>
<div class="row">
<div class="col-xl-3 col-md-6">
<!-- card -->
<div class="card card-animate">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="flex-grow-1 overflow-hidden">
<p class="text-uppercase fw-medium text-muted text-truncate mb-0"> News/Blogs</p>
</div>
{{-- <div class="flex-shrink-0">
<h5 class="text-success fs-14 mb-0">
<i class="ri-arrow-right-up-line fs-13 align-middle"></i> +16.24 %
</h5>
</div> --}}
</div>
<div class="d-flex align-items-end justify-content-between mt-4">
<div>
<h4 class="fs-22 fw-semibold ff-secondary mb-4"><span class="counter-value"
data-target="{{ MPCMS::showCount('news') }}"></span></h4>
<a href="{{ route('backendnews.index') }}" class="text-decoration-underline">View all</a>
</div>
<div class="avatar-sm flex-shrink-0">
<span class="avatar-title bg-success-subtle rounded fs-3">
<i class="bx bx-news text-success"></i>
</span>
</div>
</div>
</div><!-- end card body -->
</div><!-- end card -->
</div><!-- end col -->
<div class="col-xl-3 col-md-6">
<!-- card -->
<div class="card card-animate">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="flex-grow-1 overflow-hidden">
<p class="text-uppercase fw-medium text-muted text-truncate mb-0">Testimonials</p>
</div>
{{-- <div class="flex-shrink-0">
<h5 class="text-danger fs-14 mb-0">
<i class="ri-arrow-right-down-line fs-13 align-middle"></i> -3.57 %
</h5>
</div> --}}
</div>
<div class="d-flex align-items-end justify-content-between mt-4">
<div>
<h4 class="fs-22 fw-semibold ff-secondary mb-4"><span class="counter-value"
data-target="{{ MPCMS::showCount('testimonials') }}"></span></h4>
<a href="{{ route('testimonials.index') }}" class="text-decoration-underline">View all</a>
</div>
<div class="avatar-sm flex-shrink-0">
<span class="avatar-title bg-info-subtle rounded fs-3">
<i class="bx bx-message-rounded-dots text-info"></i>
</span>
</div>
</div>
</div><!-- end card body -->
</div><!-- end card -->
</div><!-- end col -->
<div class="col-xl-3 col-md-6">
<!-- card -->
<div class="card card-animate">
<div class="card-body">
<div class="d-flex align-items-center">
<div class="flex-grow-1 overflow-hidden">
<p class="text-uppercase fw-medium text-muted text-truncate mb-0">Franchise</p>
</div>
{{-- <div class="flex-shrink-0">
<h5 class="text-success fs-14 mb-0">
<i class="ri-arrow-right-up-line fs-13 align-middle"></i> +29.08 %
</h5>
</div> --}}
</div>
<div class="d-flex align-items-end justify-content-between mt-4">
<div>
<h4 class="fs-22 fw-semibold ff-secondary mb-4"><span class="counter-value"
data-target="{{ MPCMS::showCount('franchises') }}"></span></h4>
<a href="{{ route('franchises.index') }}" class="text-decoration-underline">View all</a>
</div>
<div class="avatar-sm flex-shrink-0">
<span class="avatar-title bg-warning-subtle rounded fs-3">
<i class="bx bx-home-alt text-warning"></i>
</span>
</div>
</div>
</div><!-- end card body -->
</div><!-- end card -->
</div><!-- end col -->
</div>
<h4 style="text-align: center">Activity Log</h4>
<div class="row">
<table id="myTable" class="display" style="width: 100%; padding-top: 20px; background-color: white;">
<thead>
<tr>
<th>Action Url</th>
<th>Method Name</th>
<th>Activity</th>
<th>Created At</th>
</tr>
</thead>
<tbody>
@foreach ($datas as $data)
<tr>
<td>{{ str_replace('http://127.0.0.1:8000', '', $data->actionUrl) }}</td>
<td>{{ $data->methodName }}</td>
<td>{{ $data->activity }}</td>
<td>{{ $data->created_at }}</td>
</tr>
@endforeach
<!-- Add more table rows here if needed -->
</tbody>
</table>
</div>
@endsection
@push('js')
<script type="text/javascript" src="https://cdn.datatables.net/2.0.5/js/dataTables.js"></script>
<script>
$(document).ready(function() {
$('#myTable').DataTable();
});
</script>
@endpush