@extends('layouts.admin') @section('title') Create User @endsection @section('page_title') Create New User @endsection @section('content') @push('page_style') @endpush Create New Sub Admin Sub Admins Create New Sub Admin @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 Role * Select Role @foreach(getAllRoles() as $key => $roleObj) @if(!isSuperAdmin() && ( ($roleObj->slug == 'admin') || ($roleObj->slug == 'user'))) @continue; @endif id ? "selected": ""}}>{{ $roleObj->title }} @endforeach @if ($errors->has('role')) {{ $errors->first('role') }} @endif Email * @if ($errors->has('email')) {{ $errors->first('email') }} @endif Phone Number * @if ($errors->has('phone_number')) {{ $errors->first('phone_number') }} @elseif($errors->has('phone_code')) {{ $errors->first('phone_code') }} @elseif($errors->has('iso_code')) {{ $errors->first('iso_code') }} @endif Password * @if ($errors->has('password')) {{ $errors->first('password') }} @endif Confirm Password * @if ($errors->has('confirm_password')) {{ $errors->first('confirm_password') }} @endif @push('page_script') @endpush @endsection