@extends('layouts.admin.admin') @section('title', 'Create Users') @section('content') @push('styles') @endpush
@include('partials.header') @include('partials.sidebar')
@include('partials.breadcrumbs')
Executive User Details
@csrf @method("PUT")
@if ($errors->has('first_name')) {{ $errors->first('first_name') }} @endif
@if ($errors->has('last_name')) {{ $errors->first('last_name') }} @endif
@if ($errors->has('phone')) {{ $errors->first('phone') }} @endif
@if ($errors->has('email')) {{ $errors->first('email') }} @endif
@if ($errors->has('roleid')) {{ $errors->first('roleid') }} @endif
@if ($errors->has('divisionid')) {{ $errors->first('divisionid') }} @endif
@if ($errors->has('regionid')) {{ $errors->first('regionid') }} @endif
@if ($errors->has('areaid')) {{ $errors->first('areaid') }} @endif
@php $permisions = auth()->user()->getPermissionsViaRoles()->pluck('name')->toArray(); @endphp
@if(auth()->user()->usertype !== 'admin') @if(in_array('fullaccess.user', $permisions)) @if(auth()->user()->id != $userdetails->id) @endif @endif @else @endif
@push('script') @endpush @stop