@extends('admin.layouts.main') @section('title') @if($id) Edit User @else Add User @endif @endsection @section('content')
@include("admin.common.sidebar")
@csrf
@if($id)

{{ @trans('user.edit_user') }}

@else

{{ @trans('user.add_user') }}

@endif
@if($errors->has('first_name'))
{{ $errors->first('first_name')}}
@endif
@if($errors->has('last_name'))
{{ $errors->first('last_name')}}
@endif
@if($errors->has('email'))
{{ $errors->first('email')}}
@endif
@if($errors->has('mobile'))
{{ $errors->first('mobile')}}
@endif
@if($errors->has('departments'))
{{ $errors->first('departments')}}
@endif
@if($errors->has('roles'))
{{ $errors->first('roles')}}
@endif
@if($errors->has('linkedin_profile'))
{{ $errors->first('linkedin_profile')}}
@endif
@if($id && !$errors->has('password'))••••••••@endif @if($errors->has('password'))
{{ $errors->first('password')}}
@endif
@if($id && !$errors->has('password'))••••••••@endif @if($errors->has('password_confirmation'))
{{ $errors->first('password_confirmation')}}
@endif
@endsection @push('pageJs') @endpush