@extends('layouts.app') @php $userPermission = \Session::get('userPermission'); $organization_type = \Session::get('organization_type'); $currentOrganization = \Session::get('currentOrganization'); @endphp @section('content')

Add User

@csrf
Role Information
@if(count($roles) > 1) @endif @foreach ($roles as $role) @endforeach @if ($errors->has('role')) {{ $errors->first('role') }} @endif
Personal Information
@if ($errors->has('firstname')) {{ $errors->first('firstname') }} @endif
@if ($errors->has('lastname')) {{ $errors->first('lastname') }} @endif
@if ($errors->has('email')) {{ $errors->first('email') }} @endif
@if ($errors->has('mobileNumber')) {{ $errors->first('mobileNumber') }} @endif
@if(isset($organization_type) && $organization_type == 'MULTIPLE')
Organization
@else @endif
Buyer Information
@if ($errors->has('shopname')) {{ $errors->first('shopname') }} @endif
@if ($errors->has('gst')) {{ $errors->first('gst') }} @endif
@if ($errors->has('creditLimit')) {{ $errors->first('creditLimit') }} @endif
@foreach ($retailerCategories as $key => $category) @endforeach @if ($errors->has('category')) {{ $errors->first('category') }} @endif
Address Information
@if ($errors->has('address1')) {{ $errors->first('address1') }} @endif
@if ($errors->has('address2')) {{ $errors->first('address2') }} @endif
@if ($errors->has('country')) {{ $errors->first('country') }} @endif
@foreach ($states as $key => $state) @endforeach @if ($errors->has('state')) {{ $errors->first('state') }} @endif
@if(isset($user) && $user->district) @foreach ($districts as $key => $district) @endforeach @endif @if ($errors->has('district')) {{ $errors->first('district') }} @endif
@if(isset($user) && $user->city) @foreach ($cities as $key => $city) @endforeach @endif @if ($errors->has('city')) {{ $errors->first('city') }} @endif
@if ($errors->has('pincode')) {{ $errors->first('pincode') }} @endif
Image
@if ($errors->has('file')) {{ $errors->first('file') }} @endif
@if(isset($user) && !is_null($user->file)) @endif
@if(!isset($user))
Security
@if ($errors->has('password')) {{ $errors->first('password') }} @endif
@if ($errors->has('password_confirmation')) {{ $errors->first('password_confirmation') }} @endif
@endif
Approval
@php if(isset($user) && $user->status){ $checked = 'true'; }else{ $checked = ''; } @endphp @if ($errors->has('approved')) {{ $errors->first('approved') }} @endif
@isset($user) @endisset
Cancel