@extends('admin.layouts.main') @section('title') @if($edit) Edit Client User @else Add Client User @endif @endsection @section('content') @include("admin.common.sidebar") {{ @trans('client_user.directory') }} {{ @trans('client_user.client_users') }} @if($edit) {{ @trans('client_user.edit_client_user') }} @else {{ @trans('client_user.add_client_user') }} @endif @csrf @if($id) {{ @trans('client_user.edit_client_user') }} @else {{ @trans('client_user.add_client_user') }} @endif {{ @trans('client_user.first_name') }} * @if($errors->has('first_name')) {{ $errors->first('first_name')}} @endif {{ @trans('client_user.last_name') }} * @if($errors->has('last_name')) {{ $errors->first('last_name')}} @endif {{ @trans('client_user.email') }} * @if($errors->has('email')) {{ $errors->first('email')}} @endif {{ @trans('client_user.mobile') }} * @if($errors->has('mobile')) {{ $errors->first('mobile')}} @endif {{ @trans('client_user.client') }} * {{ @trans('client_user.select_client') }} @foreach($clientsList as $client) @if($id) company_id == $client->id) selected="selected"@endif>{{ $client->name}} @else {{ $client->name}} @endif @endforeach @if($errors->has('departments')) {{ $errors->first('departments')}} @endif {{ @trans('client_user.cancel') }} @endsection @push('pageJs') {!! JsValidator::formRequest('App\Http\Requests\Client_user\StoreClientUser', '#storeClientUserForm') !!} @endpush