{{-- ICTHospital - sign-in fields shared by the doctor and staff forms. Expects $person (the record) and $roleLabel (e.g. "Doctor"). Copyright (c) DEVtrust Part of ICTHospital Licensed under the GNU General Public License v3.0. --}} @php($login = \App\Support\StaffLogin::userFor($person->exists ? $person : null))
Login @if ($login)

Signs in as {{ $login->login }} with the {{ $login->group }} permissions. Fill in either field below only to change it.

@else

Optional. Give this {{ strtolower($roleLabel) }} a username and password so they can sign in. They get the {{ $roleLabel }} permissions set under Users and Roles, Permissions.

@endif
@if ($errors->has('login_username')){{ $errors->first('login_username') }}@endif
@if ($errors->has('login_password')){{ $errors->first('login_password') }}@elseAt least 8 characters.@endif