@extends('layouts.main_layout') @php $title = 'Add User'; $name = $email = $mobile = $organization = $unit = $level = $status = ''; if(!empty($user)){ $title='Edit User'; $name = $user->name; $email = $user->email; $mobile = $user->mobile; $country_code = $user->country_code; $organization = $user->organization_id; $unit = $user->unit_id; $level = @$user->roles->first()->id; $status = $user->is_active; } @endphp @section('title','RCSA - '.$title) @section('main-content') @if ($errors->any()) @foreach ($errors->all() as $error) {{ $error }} @endforeach @endif {{$title}} @if(!empty($user)) @method('PUT') @else @endif @csrf() Name * Email * Mobile No. * Country code @if($countries) @foreach($countries as $key => $val) id ? 'selected' : '' }}> {{ $val->dial_code.' '.ucwords($val->name) }} @endforeach @endif Select Organization * Select organization @foreach($organizations as $id=>$name) {{$name}} @endforeach Select Access Level * Select access level @foreach($roles as $id=>$name) {{ucwords($name)}} @endforeach Select Department / Business Entity / Process * Select Status * Select status Active Inactive Cancel Save @endsection @section('additionaljs') @endsection