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

@if (isset($user)) Edit @else Add @endif User

@csrf
Role Information
@foreach ($roles as $role) @endforeach @if ($errors->has('role')) {{ $errors->first('role') }} @endif
@foreach ($users as $reportingUser) @endforeach @if ($errors->has('reporting_to')) {{ $errors->first('reporting_to') }} @endif
Personal
Information
@if ($errors->has('firstname')) {{ $errors->first('firstname') }} @endif
@if ($errors->has('lastname')) {{ $errors->first('lastname') }} @endif
@if ($errors->has('mobileNumber')) {{ $errors->first('mobileNumber') }} @endif
@foreach ($regions as $region) @endforeach @if ($errors->has('region')) {{ $errors->first('region') }} @endif
@foreach ($area as $a) @endforeach @if ($errors->has('area')) {{ $errors->first('area') }} @endif
@foreach ($products as $product) @endforeach @if ($errors->has('product')) {{ $errors->first('product') }} @endif
@foreach ($segments as $segment) @endforeach @if ($errors->has('segment')) {{ $errors->first('segment') }} @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 = 'checked'; }else{ $checked = ''; } @endphp @if ($errors->has('approved')) {{ $errors->first('approved') }} @endif
@isset($user) @endisset
Cancel Submit