@php
$customerPppPakets = \App\Models\Customers\CustomerPaket::whereHas('customer_ppp_paket')->with('customer_ppp_paket')->get();
// $customerPppPakets = $customerPakets->whereHas('customer_ppp_paket');
$offlineCustomerPppPakets = $customerPppPakets->sortByDesc('updated_at')->where('online', false);
@endphp
Offline PPP Customer {{ $offlineCustomerPppPakets->count() }} from {{ $customerPppPakets->count() }}
@forelse ($offlineCustomerPppPakets->slice(0,5) as $offlineCustomerPppPaket)
-
{{ $offlineCustomerPppPaket->user->full_name }}
{{ $offlineCustomerPppPaket->paket->mikrotik->name }}
{{ \Carbon\Carbon::parse($offlineCustomerPppPaket->updated_at)->format('d M Y h:i')}}
@empty
@if ($offlineCustomerPppPakets->count() > 0)
All Customer Online
@else
Dont have customer
@endif
@endforelse
@php
$countCustomerStaticPakets = \App\Models\Customers\CustomerStaticPaket::orderBy('updated_at', 'DESC')->count();
$offlineCustomerStaticPakets = \App\Models\Customers\CustomerStaticPaket::whereOnline(false)
->orderBy('updated_at', 'DESC')
->get();
@endphp
Offline IP Static Customer {{ $offlineCustomerStaticPakets->count() }} from {{ $countCustomerStaticPakets }}
@forelse ($offlineCustomerStaticPakets->slice(0, 4) as $offlineCustomerStaticPaket)
-
{{ $offlineCustomerStaticPaket->customer_paket->user->full_name }} - {{ $offlineCustomerStaticPaket->paket->mikrotik->name }} - {{ \Carbon\Carbon::parse($offlineCustomerStaticPaket->updated_at)->format('d M Y h:i')}}
@empty
@if ($countCustomerStaticPakets > 0)
All Customer Online
@else
Dont have customer
@endif
@endforelse
@php
$histories = \App\Models\Servers\MikrotikClientHistory::orderBy('created_at','DESC')->get();
@endphp
{{ $histories->count() }} Histories
@forelse ($histories->slice(0, 4) as $history)
-
{{ $history->user->full_name }} - {{ $history->status }}
{{ $history->type }} - {{ $history->mikrotik->name }}
{{ \Carbon\Carbon::parse($history->created_at)->translatedFormat('d M Y H:i') }}
@empty
No history
@endforelse