{{ ++$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
|
@endif
@canany(['secret-disable', 'customer-edit', 'secret-edit', 'customer-delete'])
@can('customer-edit')
{{ __('customer.action.edit') }}
@if ($customer->activation == 'false')
@else
@if ($customer->disabled === \App\Enums\MikrotikStatus::PPPOE_DISABLE->value)
@elseif ($customer->disabled === \App\Enums\MikrotikStatus::PPPOE_ENABLE->value)
@endif
@endif
@endcan
@can('customer-delete')
 {{ __('customer.action.delete') }}
@endcan
@endcanany
|
@endforeach