@extends('layouts.master') @section('title') services @endsection @section('css') @endsection @section('content') {{-- @component('components.breadcrumb') @slot('li_1') Account @endslot @slot('title') settings @endslot @endcomponent --}}
@include('clients.header')
@if (session('status')) @endif @if (session('error'))
@endif @if (session('info'))
@endif @if($errors->any())
@endif
SERVICES
@can('manage pppoe') @endcan
@php $isCompactMobileView = isset($services) && count($services) <= 5; @endphp
@if(isset($services) && count($services))
{{-- --}} @if (setting('smartolt_enabled') === 'enabled') @endif @foreach($services as $service) {{-- --}} @if (setting('smartolt_enabled') === 'enabled') @endif @can('manage pppoe') @else @endcan @if($service->nas()->exists()) @else @endif @endforeach
#StatusSignalType Package IP Address Tags Description Price Mac address Username Password Expiry Router Actions
{{ $service->id }} {!! $service->status() !!} {!! $service->getOnlineStatus() !!} {!! $service->getSignalPowerHtml() !!} @if(isset($service->type)) {{ $service->type }} @elseif($service->cleartextpassword) PPP @else DHCP @endif {{ $service->package->name }} {{$service->ipaddress}} @if(isset($service->tags) && count($service->tags)) @foreach($service->tags as $tag) {{ $tag->name }} @if(!$loop->last) , @endif @endforeach @endif {{ $service->description }} {{ $service->price }} ksh {{$service->mac_address}} @can('clear MAC address') @if ($service->mac_address && $service->type != 'DHCP') @if($service->type !== 'DHCP')
  • @endif @else @endif @endcan
    {{ $service->username }} {{ $service->cleartextpassword }}******* ******* @php $now = Carbon\Carbon::now(); $graceExpiry = $service->grace_expiry ? Carbon\Carbon::parse($service->grace_expiry) : null; $expiry = Carbon\Carbon::parse($service->expiry); $displayExpiry = ($graceExpiry && $graceExpiry->gt($expiry) && $graceExpiry->gt($now)) ? $graceExpiry : $expiry; $isWithinGracePeriod = ($graceExpiry && $graceExpiry->gt($expiry) && $graceExpiry->gt($now)); $blockAfterDays = setting('block_recurring_clients_days', 14); $disconnectionDate = $expiry->copy()->addDays($blockAfterDays); $pendingDisconnection = $disconnectionDate->isFuture(); @endphp @if($displayExpiry->isPast())
    Expired {{ $displayExpiry->format('d M Y H:i') }} {{-- Show full date and time --}}
    @if($service->client->billingType === 'recurring' && $service->is_active && $pendingDisconnection)
    Pending Disconnection on {{ $disconnectionDate->format('d M Y H:i') }}
    @endif @else @if($displayExpiry->lte($now->copy()->addWeek()))
    {{ $displayExpiry->diffForHumans() }}
    @else
    {{ $displayExpiry->format('d M Y H:i') }}
    @endif @endif @if($isWithinGracePeriod) (Grace Period) @endif
    {{$service->nas->shortname}}
    @else
    Sorry! No service Found

    You have not added any internet service. You need atleast one to proceed

    @endif
    @if(isset($services) && count($services)) @foreach($services as $service)
    {{ $service->package->name }}
    {!! $service->status() !!} {!! $service->getOnlineStatus() !!}
    IP Address {{ $service->ipaddress }}
    @if(setting('smartolt_enabled') === 'enabled')
    Signal {!! $service->getSignalPowerHtml() !!}
    @endif
    Expiry {{ \Carbon\Carbon::parse($service->expiry)->format('d M, Y') }}
    Router {{ $service->nas->shortname ?? 'N/A' }}
    @endforeach @else
    No Services Found

    Add an internet service to get started

    @endif
    @endsection @section('script') @endsection