{{ __('customer.header.show') }}
@if ($billingLastPayment) @php $activationDate = Carbon\Carbon::parse($customer->activation_date)->format('d'); $totalDaysInMonth = Carbon\Carbon::parse( $billingLastPayment->payment_time ?? '1970-01-01', )->addMonth()->daysInMonth; if ($activationDate > $totalDaysInMonth) { $activationDate = $totalDaysInMonth; } @endphp @endif @if ($notYetPaid > 0) @endif
@if ($serverDisconnect == 'false') @if ($customer->internet_service == 'ppp')
{{ __('customer.header.show-server') }}
{{ $info_msg }} @if ($pppsecret['name'] != $customer->username || $pppsecret['password'] != $customer->password_ppp)
{{ __('Warning username or password on server different with database!') }}
On Database :
Username: {{ $customer->username }}
Password: {{ $customer->password_ppp }}
@endif
@if (isset($secretActive)) @endif
@can('secret-edit') @if (isset($pppsecret['last-caller-id']))  {{ __('customer.button.edit-ppp') }} @else  {{ __('customer.button.edit-ppp') }} @endif @endcan @canany('customer-edit', 'customer-create') @if ($customer->activation == 'false')
@csrf @method('put')
@endif @endcanany @can('secret-disable') @if ($customer->activation == 'true') @if ($pppsecret['disabled'] === \App\Enums\MikrotikStatus::PPPOE_DISABLE->value)
@csrf @method('put')
@else
@csrf @method('put')
@endif @endif @endcan
@elseif ($customer->internet_service == 'ip_static')
{{ __('customer.header.show-server') }}
Ip Address: {{ $customer->ip_static }}
MAC Address: {{ $customer->mac_address }}
Interface: {{ $customer->interface }}
Limitasi Name: {{ $customer->username }}
@endif @else
{{ __('customer.header.show-server') }}
{{ $info_msg }}
@canany('customer-edit', 'customer-create') @if ($customer->activation == 'false')
@csrf @method('put')
@endif @endcanany
@endif
{{ __('customer.header.show-ont') }}
@if ($secretActive)
{{ __('customer.header.traffic-monitoring') }}
Interface : pppoe-{{ $customer->username }}
@if ($customer->username) @section('custom_scripts') @endsection @endif @endif