@extends('admin.layouts.app') @php $mode = "Add"; $action = route('user.add'); if(!empty($id)){ $mode = "Edit"; $action = ""; } $allow_image_ext = collect(config('common.allow_image_ext'))->implode(', '); $upload_image_ext = collect(config('common.allow_image_ext'))->implode('|'); $upload_img_size = config("common.upload_img_size"); $allowed_img_size = config("common.upload_img_size")*1024; $countries_phone_code = get_countries_phone_code(); $selected_country_phone_code = ($mode == "Edit") ? $users->country_phone_code : old('country_phone_code'); @endphp @section('content')

Users

{{ $mode }} User

@if(check_route_access('user.list')) @endif
@include('admin.includes.status')
{{ csrf_field() }}
first_name : old('first_name') }}" >
@if ($errors->has('first_name')){{ $errors->first('first_name') }}@endif
middle_name : old('middle_name') }}">
last_name : old('last_name') }}">
@if ($errors->has('last_name')){{ $errors->first('last_name') }}@endif
email : old('email') }}" {{ ($auth_admin->role_name != "root" && $mode == "Edit") ? 'disabled' : ''}}> @if($mode == "Edit" && $auth_admin->role_name == "root")
Note: “Once you update Email ID, EV will have to verify new Email”.
@endif
@if ($errors->has('email')){{ $errors->first('email') }}@endif
@if($mode == "Add")
@if ($errors->has('password')){{ $errors->first('password') }}@endif
@endif
@if ($errors->has('country_phone_code')){{ $errors->first('country_phone_code') }}@endif
phone_number : old('phone_number') }}" >
@if ($errors->has('phone_number')){{ $errors->first('phone_number') }}@endif
secondary_email : old('secondary_email') }}" >
@if ($errors->has('timezone')){{ $errors->first('timezone') }}@endif
street : old('street') }}" >
@if ($errors->has('street')){{ $errors->first('street') }}@endif
city : old('city') }}" >
@if ($errors->has('city')){{ $errors->first('city') }}@endif
zip_code : old('zip_code') }}" >
@if ($errors->has('zip_code')){{ $errors->first('zip_code') }}@endif
@if ($errors->has('country')){{ $errors->first('country') }}@endif
facebook_url : old('facebook_url') }}" >
twitter_url : old('twitter_url') }}" >
@if($mode == "Add")
@if ($errors->has('email_verified')){{ $errors->first('email_verified') }}@endif
@endif
@if($mode == "Edit")
@php $img_url = get_user_profile_image_url($users->profile_photo,$id,'200'); @endphp
The image file should be JPG, PNG or JPEG format. Image size must be under 2MB.
@endif
@endsection @section('scripts') @endsection