This commit is contained in:
pbao9
2026-01-30 11:16:12 +07:00
parent 68ee544ecb
commit 9802839056
2 changed files with 261 additions and 247 deletions
+30 -18
View File
@@ -11,7 +11,8 @@
</div> </div>
<div class="d-flex align-items-center flex-wrap text-nowrap"> <div class="d-flex align-items-center flex-wrap text-nowrap">
<div class="input-group flatpickr w-200px me-2 mb-2 mb-md-0" id="dashboardDate"> <div class="input-group flatpickr w-200px me-2 mb-2 mb-md-0" id="dashboardDate">
<span class="input-group-text input-group-addon bg-transparent border-primary" data-toggle><i data-lucide="calendar" class="text-primary"></i></span> <span class="input-group-text input-group-addon bg-transparent border-primary" data-toggle><i
data-lucide="calendar" class="text-primary"></i></span>
<input type="text" class="form-control bg-transparent border-primary" placeholder="Select date" data-input> <input type="text" class="form-control bg-transparent border-primary" placeholder="Select date" data-input>
</div> </div>
</div> </div>
@@ -134,10 +135,8 @@
</h6> </h6>
</div> </div>
<div class="card-body"> <div class="card-body">
<div id="billingChart" class="mt-2" <div id="billingChart" class="mt-2" data-today="{{ $total_amount_day }}"
data-today="{{ $total_amount_day }}" data-month="{{ $total_amount_month }}" data-year="{{ $total_amount_year }}"></div>
data-month="{{ $total_amount_month }}"
data-year="{{ $total_amount_year }}"></div>
<div class="row mt-3"> <div class="row mt-3">
<div class="col-6 border-end mb-3"> <div class="col-6 border-end mb-3">
<h4 class="text-success mb-1">@money($total_amount_day)</h4> <h4 class="text-success mb-1">@money($total_amount_day)</h4>
@@ -173,16 +172,19 @@
<div class="d-flex flex-column"> <div class="d-flex flex-column">
@if (count($orders) > 0) @if (count($orders) > 0)
@foreach ($orders as $item) @foreach ($orders as $item)
<a href="{{ route('admin.order.edit', ['id' => $item->id]) }}" class="d-flex align-items-center border-bottom p-3"> <a href="{{ route('admin.order.edit', ['id' => $item->id]) }}"
class="d-flex align-items-center border-bottom p-3">
<div class="me-3"> <div class="me-3">
<div class="bg-primary bg-opacity-10 p-2 rounded-circle"> <div
class="bg-primary bg-opacity-10 rounded-circle w-35px h-35px d-flex justify-content-center align-items-center">
<i data-lucide="file-text" class="text-primary icon-sm"></i> <i data-lucide="file-text" class="text-primary icon-sm"></i>
</div> </div>
</div> </div>
<div class="w-100"> <div class="w-100">
<div class="d-flex justify-content-between"> <div class="d-flex justify-content-between">
<h6 class="text-body mb-1">{{ $item->customer->firstname . ' ' . $item->customer->lastname }}</h6> <h6 class="text-body mb-1">{{ $item->customer->firstname . ' ' . $item->customer->lastname }}</h6>
<span class="text-secondary fs-12px">{{ \Carbon\Carbon::parse($item->created_at)->diffForHumans() }}</span> <span
class="text-secondary fs-12px">{{ \Carbon\Carbon::parse($item->created_at)->diffForHumans() }}</span>
</div> </div>
<p class="text-secondary fs-13px">Order: {{ $item->order_num }}</p> <p class="text-secondary fs-13px">Order: {{ $item->order_num }}</p>
</div> </div>
@@ -252,14 +254,16 @@
@foreach ($staffs as $item) @foreach ($staffs as $item)
<div class="d-flex align-items-center border-bottom p-3"> <div class="d-flex align-items-center border-bottom p-3">
<div class="me-3"> <div class="me-3">
<img src="{{ asset('/images/logo.png') }}" class="rounded-circle w-35px h-35px" alt="user"> <img src="{{ asset('/images/logo.png') }}"
class=" rounded-circle w-35px h-35px d-flex justify-content-center align-items-center" alt="user">
</div> </div>
<div class="w-100"> <div class="w-100">
<div class="d-flex justify-content-between"> <div class="d-flex justify-content-between">
<h6 class="text-body mb-1">{{ $item->user->firstname . ' ' . $item->user->lastname }}</h6> <h6 class="text-body mb-1">{{ $item->user->firstname . ' ' . $item->user->lastname }}</h6>
<span class="text-success fs-12px">Online</span> <span class="text-success fs-12px">Online</span>
</div> </div>
<span class="text-secondary fs-12px">{{ \Carbon\Carbon::parse($item->updated_at)->diffForHumans() }}</span> <span
class="text-secondary fs-12px">{{ \Carbon\Carbon::parse($item->updated_at)->diffForHumans() }}</span>
</div> </div>
</div> </div>
@endforeach @endforeach
@@ -286,14 +290,16 @@
@foreach ($logs as $item) @foreach ($logs as $item)
<div class="d-flex align-items-start border-bottom p-3"> <div class="d-flex align-items-start border-bottom p-3">
<div class="me-3 mt-1"> <div class="me-3 mt-1">
<div class="bg-secondary bg-opacity-10 p-1 rounded-circle"> <div
class="bg-secondary bg-opacity-10 rounded-circle w-35px h-35px d-flex justify-content-center align-items-center">
<i data-lucide="check-circle" class="text-secondary icon-xs"></i> <i data-lucide="check-circle" class="text-secondary icon-xs"></i>
</div> </div>
</div> </div>
<div class="w-100"> <div class="w-100">
<div class="d-flex justify-content-between"> <div class="d-flex justify-content-between">
<h6 class="text-body mb-1">{{ $item->username }}</h6> <h6 class="text-body mb-1">{{ $item->username }}</h6>
<span class="text-secondary fs-12px">{{ \Carbon\Carbon::parse($item->created_at)->diffForHumans() }}</span> <span
class="text-secondary fs-12px">{{ \Carbon\Carbon::parse($item->created_at)->diffForHumans() }}</span>
</div> </div>
<p class="text-secondary fs-13px mb-1">{{ $item->description }}</p> <p class="text-secondary fs-13px mb-1">{{ $item->description }}</p>
<small class="text-muted">{{ $item->client_ip }}</small> <small class="text-muted">{{ $item->client_ip }}</small>
@@ -328,17 +334,20 @@
@foreach ($vmwares as $item) @foreach ($vmwares as $item)
<div class="d-flex align-items-center border-bottom p-3"> <div class="d-flex align-items-center border-bottom p-3">
<div class="me-3"> <div class="me-3">
<div class="bg-info bg-opacity-10 p-2 rounded-circle"> <div
class="bg-info bg-opacity-10 rounded-circle w-35px h-35px d-flex justify-content-center align-items-center">
<i data-lucide="server" class="text-info icon-sm"></i> <i data-lucide="server" class="text-info icon-sm"></i>
</div> </div>
</div> </div>
<div class="w-100"> <div class="w-100">
<div class="d-flex justify-content-between"> <div class="d-flex justify-content-between">
<h6 class="text-body mb-1">{{ $item->customer->firstname . ' ' . $item->customer->lastname }}</h6> <h6 class="text-body mb-1">{{ $item->customer->firstname . ' ' . $item->customer->lastname }}</h6>
<span class="text-secondary fs-12px">{{ \Carbon\Carbon::parse($item->created_at)->diffForHumans() }}</span> <span
class="text-secondary fs-12px">{{ \Carbon\Carbon::parse($item->created_at)->diffForHumans() }}</span>
</div> </div>
<p class="text-secondary fs-13px mb-1">{{ $item->ipaddress->ip ?? 'No IP' }}</p> <p class="text-secondary fs-13px mb-1">{{ $item->ipaddress->ip ?? 'No IP' }}</p>
<a href="{{ route('customer.product', ['userid' => $item->customer->id, 'product' => $item->id, 'type' => 4]) }}" class="text-primary fs-12px">View Details</a> <a href="{{ route('customer.product', ['userid' => $item->customer->id, 'product' => $item->id, 'type' => 4]) }}"
class="text-primary fs-12px">View Details</a>
</div> </div>
</div> </div>
@endforeach @endforeach
@@ -365,14 +374,16 @@
@foreach ($hostings as $item) @foreach ($hostings as $item)
<div class="d-flex align-items-center border-bottom p-3"> <div class="d-flex align-items-center border-bottom p-3">
<div class="me-3"> <div class="me-3">
<div class="bg-warning bg-opacity-10 p-2 rounded-circle"> <div
class="bg-warning bg-opacity-10 rounded-circle w-35px h-35px d-flex justify-content-center align-items-center">
<i data-lucide="hard-drive" class="text-warning icon-sm"></i> <i data-lucide="hard-drive" class="text-warning icon-sm"></i>
</div> </div>
</div> </div>
<div class="w-100"> <div class="w-100">
<div class="d-flex justify-content-between"> <div class="d-flex justify-content-between">
<h6 class="text-body mb-1">{{ $item->customer->firstname . ' ' . $item->customer->lastname }}</h6> <h6 class="text-body mb-1">{{ $item->customer->firstname . ' ' . $item->customer->lastname }}</h6>
<span class="text-secondary fs-12px">{{ \Carbon\Carbon::parse($item->created_at)->diffForHumans() }}</span> <span
class="text-secondary fs-12px">{{ \Carbon\Carbon::parse($item->created_at)->diffForHumans() }}</span>
</div> </div>
<p class="text-secondary fs-13px mb-1"> <p class="text-secondary fs-13px mb-1">
@isset($item->ipaddress->ip) @isset($item->ipaddress->ip)
@@ -381,7 +392,8 @@
No IP No IP
@endisset @endisset
</p> </p>
<a href="{{ route('customer.product', ['userid' => $item->customer->id, 'product' => $item->id, 'type' => 3]) }}" class="text-primary fs-12px">View Details</a> <a href="{{ route('customer.product', ['userid' => $item->customer->id, 'product' => $item->id, 'type' => 3]) }}"
class="text-primary fs-12px">View Details</a>
</div> </div>
</div> </div>
@endforeach @endforeach
@@ -1,4 +1,6 @@
<footer class="footer d-flex flex-column flex-md-row align-items-center justify-content-between px-4 py-3 border-top small"> <footer class="footer d-flex flex-column flex-md-row align-items-center justify-content-between px-4 py-3 border-top small">
<p class="text-secondary mb-1 mb-md-0">Copyright © <a href="https://tgs.com.vn" target="_blank">Thế Giới Số</a>. <p class="text-secondary mb-1 mb-md-0">
Copyright © {{ date('Y') }}
<a href="https://tgs.com.vn" target="_blank">Thế Giới Số</a>.
</p> </p>
</footer> </footer>