@extends('layouts.master') @section('content')
{{ $title }}
View for adding a user
@if(isset($error) || session('error'))
{{ $error ?? session('error') }}
@endif @if(session('success'))
{{ session('success') }}
@endif
@csrf
Name: * @if ($errors->has('name')) {{ $errors->first('name') }} @endif
Email: * @if ($errors->has('email')) {{ $errors->first('email') }} @endif
Password: *
@if ($errors->has('password')) {{ $errors->first('password') }} @endif
Confirm Password: *
@if ($errors->has('confirm_password')) {{ $errors->first('confirm_password') }} @endif
Role: * {!! Form::select('roles[]', $roles,[], array('class' => 'form-control', 'required')) !!} @if ($errors->has('roles')) {{ $errors->first('roles') }} @endif
Payrolls that a user can access:
@foreach($payrolls as $value)
@endforeach @if ($errors->has('payrolls')) {{ $errors->first('payrolls') }} @endif

@if ($errors->has('status')) {{ $errors->first('status') }} @endif
Instructions:
  • Name: Enter the user's full name.
  • Email: Enter a valid email address. The email address is the username.
  • Password: Create a password for the user. *
  • Confirm Password: Re-enter the password to confirm. *
  • Password Complexity: Password must be at least 8 characters long and must contain at least one uppercase letter, one lowercase letter, one digit, and one special character.
  • Password Visibility: Click the "Show" button to view the password.
  • Role: Select the role(s) for the user. *
  • Status: Select the status of the user (Active or Inactive). *
  • Payrolls that User can Access: Check the payrolls that the user can access.
@endsection @section('scripts') @endsection