From 9802839056a6fc15224b1b8302da39e28aced14b Mon Sep 17 00:00:00 2001 From: pbao9 Date: Fri, 30 Jan 2026 11:16:12 +0700 Subject: [PATCH] update --- resources/views/administrator/home.blade.php | 504 +++++++++--------- .../layout/partials/footer.blade.php | 4 +- 2 files changed, 261 insertions(+), 247 deletions(-) diff --git a/resources/views/administrator/home.blade.php b/resources/views/administrator/home.blade.php index 8b3d678..e1a5e69 100644 --- a/resources/views/administrator/home.blade.php +++ b/resources/views/administrator/home.blade.php @@ -11,7 +11,8 @@
- +
@@ -62,7 +63,7 @@

{{ count($invocie_unpaid) }}

- +
@@ -86,15 +87,15 @@

{{ count($tickets) }}

- +
- {{-- Users --}} -
+ {{-- Users --}} +
@@ -110,7 +111,7 @@

{{ $customers }}

- +
@@ -126,273 +127,284 @@
{{-- Billing --}}
-
-
-
- - Billing -
-
-
-
-
-
-

@money($total_amount_day)

- Today -
-
-

@money($total_amount_month)

- This Month -
-
-

@money($total_amount_year)

- This Year -
-
-

@money($total_amount)

- All Time -
-
-
+
+
+
+ + Billing +
+
+
+
+
+

@money($total_amount_day)

+ Today +
+
+

@money($total_amount_month)

+ This Month +
+
+

@money($total_amount_year)

+ This Year +
+
+

@money($total_amount)

+ All Time +
+
+
+
{{-- New Order --}}
-
-
-
- - New Order -
-
- -
+
+
+
+ + New Order +
+
+ +
{{-- Last Post --}}
-
-
-
- - Last Post -
-
-
-
    - @if ($posts->count()) - @foreach ($posts as $item) -
  • -
    - {{ $item->name }} - - - {{ \Carbon\Carbon::parse($item->created_at)->diffForHumans() }} - -
    -
    - - - -
    -
  • - @endforeach - @else -
  • No posts
  • - @endif -
-
-
+
+
+
+ + Last Post +
+
+
+
    + @if ($posts->count()) + @foreach ($posts as $item) +
  • +
    + {{ $item->name }} + + + {{ \Carbon\Carbon::parse($item->created_at)->diffForHumans() }} + +
    +
    + + + +
    +
  • + @endforeach + @else +
  • No posts
  • + @endif +
+
+
{{-- Column 2 --}}
-
- {{-- Staff Online --}} -
-
-
-
- - Staff Online -
-
-
-
- @if (count($staffs) > 0) - @foreach ($staffs as $item) -
-
- user -
-
-
-
{{ $item->user->firstname . ' ' . $item->user->lastname }}
- Online -
- {{ \Carbon\Carbon::parse($item->updated_at)->diffForHumans() }} -
-
- @endforeach - @else -
No staff online
- @endif +
+ {{-- Staff Online --}} +
+
+
+
+ + Staff Online +
+
+
+
+ @if (count($staffs) > 0) + @foreach ($staffs as $item) +
+
+ user +
+
+
+
{{ $item->user->firstname . ' ' . $item->user->lastname }}
+ Online
+ {{ \Carbon\Carbon::parse($item->updated_at)->diffForHumans() }} +
-
-
- - {{-- Activity --}} -
-
-
-
- - Activity -
-
-
-
- @if (count($logs) > 0) - @foreach ($logs as $item) -
-
-
- -
-
-
-
-
{{ $item->username }}
- {{ \Carbon\Carbon::parse($item->created_at)->diffForHumans() }} -
-

{{ $item->description }}

- {{ $item->client_ip }} -
-
- @endforeach - @else -
No activity
- @endif -
-
-
+ @endforeach + @else +
No staff online
+ @endif +
+
+ + {{-- Activity --}} +
+
+
+
+ + Activity +
+
+
+
+ @if (count($logs) > 0) + @foreach ($logs as $item) +
+
+
+ +
+
+
+
+
{{ $item->username }}
+ {{ \Carbon\Carbon::parse($item->created_at)->diffForHumans() }} +
+

{{ $item->description }}

+ {{ $item->client_ip }} +
+
+ @endforeach + @else +
No activity
+ @endif +
+
+
+
+
{{-- Column 3 --}}
-
- {{-- New VM --}} -
-
-
-
- - New Virtual Machine -
-
-
-
- @if (count($vmwares) > 0) - @foreach ($vmwares as $item) -
-
-
- -
-
-
-
-
{{ $item->customer->firstname . ' ' . $item->customer->lastname }}
- {{ \Carbon\Carbon::parse($item->created_at)->diffForHumans() }} -
-

{{ $item->ipaddress->ip ?? 'No IP' }}

- View Details -
-
- @endforeach - @else -
No data
- @endif -
-
-
+
+ {{-- New VM --}} +
+
+
+
+ + New Virtual Machine +
- - {{-- New Hosting --}} -
-
-
-
- - New Hosting -
-
-
-
- @if (count($hostings) > 0) - @foreach ($hostings as $item) -
-
-
- -
-
-
-
-
{{ $item->customer->firstname . ' ' . $item->customer->lastname }}
- {{ \Carbon\Carbon::parse($item->created_at)->diffForHumans() }} -
-

- @isset($item->ipaddress->ip) - {{ $item->ipaddress->ip }} - @else - No IP - @endisset -

- View Details -
-
- @endforeach - @else -
No data
- @endif +
+
+ @if (count($vmwares) > 0) + @foreach ($vmwares as $item) +
+
+
+
+
+
+
+
{{ $item->customer->firstname . ' ' . $item->customer->lastname }}
+ {{ \Carbon\Carbon::parse($item->created_at)->diffForHumans() }} +
+

{{ $item->ipaddress->ip ?? 'No IP' }}

+ View Details +
-
+ @endforeach + @else +
No data
+ @endif +
+
+ + {{-- New Hosting --}} +
+
+
+
+ + New Hosting +
+
+
+
+ @if (count($hostings) > 0) + @foreach ($hostings as $item) +
+
+
+ +
+
+
+
+
{{ $item->customer->firstname . ' ' . $item->customer->lastname }}
+ {{ \Carbon\Carbon::parse($item->created_at)->diffForHumans() }} +
+

+ @isset($item->ipaddress->ip) + {{ $item->ipaddress->ip }} + @else + No IP + @endisset +

+ View Details +
+
+ @endforeach + @else +
No data
+ @endif +
+
+
+
+
@endsection @@ -404,4 +416,4 @@ @push('custom-scripts') @vite(['resources/js/pages/dashboard.js']) -@endpush +@endpush \ No newline at end of file diff --git a/resources/views/administrator/layout/partials/footer.blade.php b/resources/views/administrator/layout/partials/footer.blade.php index 67c1c19..99e139e 100644 --- a/resources/views/administrator/layout/partials/footer.blade.php +++ b/resources/views/administrator/layout/partials/footer.blade.php @@ -1,4 +1,6 @@ \ No newline at end of file