@extends('layouts.app') @section('content')

Add New User

{{ all_errors($errors) }} @include('layouts.flash')
{{ csrf_field() }}
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if ($errors->has('email')) {{ $errors->first('email') }} @endif
@if ($errors->has('company_name')) {{ $errors->first('company_name') }} @endif
@if ($errors->has('address1')) {{ $errors->first('address1') }} @endif
@if ($errors->has('address2')) {{ $errors->first('address2') }} @endif
@if ($errors->has('city')) {{ $errors->first('city') }} @endif
@if ($errors->has('state')) {{ $errors->first('state') }} @endif
@if ($errors->has('zip')) {{ $errors->first('zip') }} @endif
@if ($errors->has('state')) {{ $errors->first('phone') }} @endif
@if($roles[0]->name == 'superadmin')
@if ($errors->has('zip_code')) {{ $errors->first('no_of_users') }} @endif
@endif
@if ($errors->has('zip_code')) {{ $errors->first('website') }} @endif
@if ($errors->has('user_name')) {{ $errors->first('user_name') }} @endif
@if ($errors->has('password')) {{ $errors->first('password') }} @endif
@if ($errors->has('password_confirmation')) {{ $errors->first('password_confirmation') }} @endif
@if ($errors->has('profile_image')) {{ $errors->first('profile_image') }} @endif
@endsection