{{-- @extends('layouts.app') --}} @extends('backend.layouts_backend.master2') @section('title') Add User @endsection @section('extra_styles') @endsection @section('content') {{-- title --}}
Add User
@if (Auth::user()->can('user-list'))
View Users
@endif {{--
Trashed
--}}
{{-- end title --}} {{-- ADD USER FORM --}} {!! Form::open(['route' => 'users.store', 'method' => 'POST']) !!} {{ csrf_field() }}
First Name
{!! Form::text('first_name', null, ['placeholder' => '', 'class' => 'form-control']) !!} @if ($errors->has('first_name')) {{--
{{ $errors->first('first_name') }}
--}}
{{ $errors->first('first_name') }}
@endif
Last Name
{!! Form::text('last_name', null, ['placeholder' => '', 'class' => 'form-control']) !!} @if ($errors->has('last_name')) {{--
{{ $errors->first('last_name') }}
--}}
{{ $errors->first('last_name') }}
@endif
User Name
{!! Form::text('username', null, ['placeholder' => '', 'class' => 'form-control']) !!} @if ($errors->has('username'))
{{ $errors->first('username') }}
@endif
Phone
{!! Form::text('phone', null, ['placeholder' => '', 'class' => 'form-control']) !!} @if ($errors->has('phone'))
{{ $errors->first('phone') }}
@endif
Email
{!! Form::text('email', null, ['placeholder' => '', 'class' => 'form-control']) !!} @if ($errors->has('email')) {{--
{{ $errors->first('email') }}
--}}
{{ $errors->first('email') }}
@endif
{{--
Photo
@if ($errors->has('photo'))
{{ $errors->first('photo') }}
@endif
--}} {{--
Expiry Date
--}}
Staff Position
-- Select --
@foreach ($staff_positions as $key => $position)
{{ $position ?? '' }}
@endforeach
{{--
Security Question
@foreach ($staff_positions as $key => $position)
{{ $position ?? '' }}
@endforeach
--}}
Pin
@if ($errors->has('pin'))
{{ $errors->first('pin') }}
@endif
Password
{!! Form::password('password', ['placeholder' => '', 'class' => 'form-control']) !!} @if ($errors->has('password')) {{--
{{ $errors->first('password') }}
--}}
{{ $errors->first('password') }}
@endif
Confirm Password
{!! Form::password('confirm-password', ['placeholder' => '', 'class' => 'form-control']) !!}
Role
{!! Form::select('roles[]', $roles, [], ['class' => 'form-control', 'multiple']) !!} @if ($errors->has('roles')) {{--
{{ $errors->first('roles') }}
--}}
{{ $errors->first('roles') }}
@endif
{{-- user category --}} {{--
User Category
-- Select --
Administrator
Customer
--}} {{-- end of additional customer fields --}}
{{--
Add User
--}}
Save User
{!! Form::close() !!}
{{-- END OF ADD USER FORM --}} @endsection @section('extra_scripts') {{-- page scripts --}} {{-- additinoal input customer --}} {{-- handline select2 --}} @endsection