@extends('admin.layouts.main') @section('title') @if($id) Edit User @else Add User @endif @endsection @section('content') @include("admin.common.sidebar") {{ @trans('user.users') }} {{ @trans('user.manage_users') }} @if($id) {{ @trans('user.edit_user') }} @else {{ @trans('user.add_user') }} @endif @csrf @if($id) {{ @trans('user.edit_user') }} @else {{ @trans('user.add_user') }} @endif {{ @trans('user.first_name') }} * @if($errors->has('first_name')) {{ $errors->first('first_name')}} @endif {{ @trans('user.last_name') }} * @if($errors->has('last_name')) {{ $errors->first('last_name')}} @endif {{ @trans('user.email') }} * @if($errors->has('email')) {{ $errors->first('email')}} @endif {{ @trans('user.phone') }} * @if($errors->has('mobile')) {{ $errors->first('mobile')}} @endif {{ @trans('user.department') }} * Select Department(s) @foreach($departments as $department) id) selected="selected" @elseif($id && $user->departments->contains('id',$department->id)) selected="selected" @endif>{{ $department->name}} @endforeach @if($errors->has('departments')) {{ $errors->first('departments')}} @endif {{ @trans('user.role') }} * Select Role(s) @foreach($roles as $role) id) selected="selected" @elseif($id && $user->roles->contains('id',$role->id)) selected="selected" @endif>{{ $role->display_name}} @endforeach @if($errors->has('roles')) {{ $errors->first('roles')}} @endif {{ @trans('user.linkedin') }} * @if($errors->has('linkedin_profile')) {{ $errors->first('linkedin_profile')}} @endif {{ @trans('user.password') }} * @if($id && !$errors->has('password'))••••••••@endif @if($errors->has('password')) {{ $errors->first('password')}} @endif {{ @trans('user.confirm_password') }} * @if($id && !$errors->has('password'))••••••••@endif @if($errors->has('password_confirmation')) {{ $errors->first('password_confirmation')}} @endif @endsection @push('pageJs') @endpush