{{ __('customer.header.index') }}
@if(isset($message))
× {{ $message }}
@else
× {{ $data->total() }} customers found
@endif
{{ $data->withQueryString()->links() }} @foreach ($data as $key => $customer) @endif @endforeach
{{ __('customer.table.no') }} {{ __('customer.table.name') }} {{ __('customer.table.address') }} {{ __('customer.table.paket') }} {{ __('customer.table.bill') }} {{ __('customer.table.server') }} {{ __('customer.table.state') }} {{ __('customer.table.action') }}
{{ ++$i }} @can('customer-list') {{ $customer->name }} @else {{ $customer->name }} @endcan
{{ $customer->ppp_type->name ?? 'No Service'}}
{{ $customer->address }} {{ $customer->paket->name }} @moneyIDR($customer->paket->price * ((100-$customer->discount)/100)) {{ $customer->mikrotik->name }} @if ($customer->activation == 'false') {{ __('customer.info.not-activation') }} @else @if ($customer->disabled === \App\Enums\MikrotikStatus::PPPOE_ENABLE->value) {{ __('pppoe.secret.enabled') }} @endif @if ($customer->disabled === \App\Enums\MikrotikStatus::PPPOE_DISABLE->value) {{ __('pppoe.secret.disabled') }} @endif @canany(['secret-disable', 'customer-edit', 'secret-edit', 'customer-delete' ]) @can('customer-edit')
  • {{ __('customer.action.edit') }}
  • @if ($customer->activation == 'false')
    @csrf @method('put') {{ __('customer.action.activation') }}
    @else @if ($customer->disabled === \App\Enums\MikrotikStatus::PPPOE_DISABLE->value)
    @csrf @method('put') {{ __('pppoe.secret.enable') }}
    @csrf @method('put') {{ __('pppoe.secret.force-enable') }}
    @elseif ($customer->disabled === \App\Enums\MikrotikStatus::PPPOE_ENABLE->value)
    @csrf @method('put') {{ __('pppoe.secret.disable') }}
    @csrf @method('put') {{ __('pppoe.secret.force-disable') }}
    @endif @endif
  • @endcan @can('customer-delete')
  •  {{ __('customer.action.delete') }}
  • @endcan
    @endcanany
    {{ $data->withQueryString()->links() }}