@extends('layouts.app') @section('content') @php $isEdit = ($mode ?? '') === 'edit'; @endphp

{{ $isEdit ? 'Edit PIN' : 'New PIN' }}

{{ $isEdit ? 'Update PIN details and department assignment.' : 'Create a new authorization PIN for gated outbound dialing.' }}

Back to PINs
@if ($errors->any())
Please fix the highlighted fields below.
@endif
@csrf @if($isEdit) @method('PUT') @endif {{-- Identity --}}
Identity
The person this PIN is assigned to.
@error('name')
{{ $message }}
@enderror
Short purpose or usage description.
@error('label')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror
{{-- PIN & Department --}}
PIN & Department
Digits only (0–9). Must be unique across all PINs.
@error('pin')
{{ $message }}
@enderror
Linked to CDR reporting by department.
@error('department_id')
{{ $message }}
@enderror
Stamped into CDR(accountcode) on successful auth.
@error('accountcode')
{{ $message }}
@enderror
{{-- Status --}}
Status
enabled ?? true) ? 'checked' : '' }} class="form-check-input" role="switch">
Disabled PINs will be rejected even if the code matches.
Cancel
@endsection