@extends('backend.layouts.app') @section('main') @section('title', 'Expired')

Sorry, your license is expired

Yuk perpanjang lisensi Anda untuk terus menikmati fitur starbill

Account Information
Full Name : {{ auth()->user()->name }}
Username : {{ auth()->user()->username }}
License : Starbill {{ \App\Models\License::where('id', auth()->user()->license_id)->select('name')->first()->name }}
Due Date : {{ \Carbon\Carbon::parse(auth()->user()->next_due)->format('d/m/Y') }}
Status : @php if (auth()->user()->status === 3) { echo 'Expired'; } else { echo 'Active'; } @endphp
Account Usage @php $nas_usage = \App\Models\RadiusNas::where('group_id', auth()->user()->id_group)->count(); $pppoe_usage = \App\Models\PppoeUser::where( 'group_id', auth()->user()->id_group, )->count(); $hotspot_usage = \App\Models\HotspotUser::where( 'group_id', auth()->user()->id_group, )->count(); $pppoe_limit = \App\Models\License::where('id', auth()->user()->license_id) ->select('limit_pppoe') ->first()->limit_pppoe; $hotspot_limit = \App\Models\License::where('id', auth()->user()->license_id) ->select('limit_hs') ->first()->limit_hs; $pppoe_usage_percent = substr(($pppoe_usage / $pppoe_limit) * $pppoe_limit, 0,2); $hotspot_usage_percent = substr(($hotspot_usage / $hotspot_limit) * $hotspot_limit, 0, 2); @endphp

Mikrotik NAS {{ $nas_usage }} / Unlimited

{{ $nas_usage }} NAS

PPPoE User {{ number_format($pppoe_usage, 0, '.', '.') }} / {{ number_format($pppoe_limit, 0, '.', '.') }}

{{ number_format($pppoe_usage, 0, '.', '.') }}

Hotspot User {{ number_format($hotspot_usage, 0, '.', '.') }} / {{ number_format($hotspot_limit, 0, '.', '.') }}

{{ number_format($hotspot_usage, 0, '.', '.') }}
@endsection