@extends('administrator.layout.master') @push('plugin-styles') @endpush @section('content')

Dashboard

{{-- Info Boxes --}}
{{-- Pending Orders --}}
Pending Orders

{{ count($pending_order) }}

{{-- Invoices Pending --}}
Invoices Pending

{{ count($invocie_unpaid) }}

{{-- Tickets Waiting --}}
Tickets Waiting

{{ count($tickets) }}

{{-- Users --}}
Users

{{ $customers }}

{{-- Column 1 --}}
{{-- Billing --}}
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 --}} {{-- 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
{{-- 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
{{-- 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 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 @push('plugin-scripts') @endpush @push('custom-scripts') @vite(['resources/js/pages/dashboard.js']) @endpush