{{ __('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.activation_date') }} {{ __('customer.table.paket') }} {{ __('customer.table.internet-service') }} {{ __('customer.table.bill') }} {{ __('customer.table.server') }} {{ __('customer.table.state') }} {{ __('customer.table.action') }}
{{ ++$i }} @can('customer-list') {{ $customer->name }} @else {{ $customer->name }} @endcan {{ $customer->address }} @if ($customer->activation == 'true') {{ Carbon\Carbon::parse($customer->activation_date)->translatedFormat('d F Y') ?? 'No Data' }} @else {{ __('Not Acitaved') }} @endif {{ $customer->paket->name }} @if ($customer->internet_service == 'ppp') {{ __('customer.label.ppp') }} @elseif ($customer->internet_service == 'ip_static') {{ __('customer.label.ip_static') }} @endif @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() }}