@extends('admin.layouts.app') @section('page_tab_title' ,"Admin Users") @section('content') @if(empty($admin->id)) Create New Admin @else Edit Admin @endif id)) action="{{ route('admin.store') }}" @else action="{{ route('admin.update', $admin->id) }}" @endif > @csrf First name * @if ($errors->has('first_name')) {{ $errors->first('first_name') }} @endif Last name * @if ($errors->has('last_name')) {{ $errors->first('last_name') }} @endif Email address * email)) name="email" @else disabled @endif required class="form-control" value="{{$admin->email ?? old('email') }}" > @if ($errors->has('email')) {{ $errors->first('email') }} @endif Phone number @if ($errors->has('phone')) {{ $errors->first('phone') }} @endif @if(empty($admin->id)) Password @if(empty($admin->password)) * @endif password)) required @endif> @if ($errors->has('password')) {{ $errors->first('password') }} @endif Confirm password @if(empty($admin->password)) * @endif password)) required @endif> @if ($errors->has('password')) {{ $errors->first('password') }} @endif @endif Is Staff Only @if( isset( $isNew ) && $isNew == 0 ) staff_only_access == '1' ) Checked @endif type="radio" name="staff_only_access" value="1"> Yes staff_only_access == '0' ) Checked @endif type="radio" name="staff_only_access" value="0"> No @else Yes No @endif Submit Cancel