{{ trans('paket.ph.search-with-server') }} @foreach (\App\Models\Servers\Mikrotik::where('disabled', false)->orderBy('name', 'asc')->get() as $mikrotik) {{ $mikrotik->name }} @endforeach {{ trans('paket.ph.search-with-status') }} {{ trans('paket.status.disable') }} {{ trans('paket.status.enable') }}
@php $deletedPakets = App\Models\Pakets\Paket::whereHas('mikrotik')->onlyTrashed(); @endphp @if ($deletedPakets->count()) {{ __('paket.button.deleted-pakets',['count'=>$deletedPakets->count()]) }} @endif {{ __('paket.button.create') }}
{{ trans('paket.table.no') }} {{ trans('paket.table.name') }} {{ trans('paket.table.price') }} {{ trans('paket.table.profile') }} {{ trans('paket.table.server') }} {{ trans('paket.table.client') }} {{ trans('paket.table.trial-days') }} {{ trans('paket.table.status') }} {{ trans('paket.table.action') }} @forelse ($pakets as $key => $paket) {{ ($pakets->currentpage() - 1) * $pakets->perpage() + $loop->index + 1 }} {{ $paket->name }} @if ($paket->price == 0) {{ trans('paket.free') }} @else @moneyIDR($paket->price) @endif {{ $paket->paket_profile->profile_name ?? '' }} - {{ $paket->mikrotik_ppp_profile_id ?? '' }} {{ $paket->mikrotik->name ?? '' }} {!! trans_choice('paket.label.customer-paket-count', $paket->customer_pakets->count(), [ 'count_customer' => $paket->customer_pakets->count(), ]) !!} {{ $paket->trial_days }}
@if ($paket->disabled) {{ trans('system.disable') }} @else {{ trans('system.enable') }} @endif
@empty
{{ trans('paket.notfound') }}
@endforelse
@if ($pakets->hasPages())
{{ $pakets->links() }}
@endif