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

Edit User

{{ all_errors($errors) }} @include('layouts.flash') {{ Form::open(array('url' => 'user/update-user/'.$user->id, 'method' => 'patch', 'class' => 'form-horizontal', 'enctype' => 'multipart/form-data')) }}
@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
@role('superadmin')
@if ($errors->has('zip_code')) {{ $errors->first('no_of_users') }} @endif
@endrole
@if ($errors->has('zip_code')) {{ $errors->first('website') }} @endif
@if ($errors->has('user_name')) {{ $errors->first('user_name') }} @endif
@forelse ($user->roles as $role) @empty @if(!$user->parent_id) @endif @endforelse @if(!$user->parent_id)
@if($user->approval) @else @endif
@endif
@if ($errors->has('profile_image')) {{ $errors->first('profile_image') }} @endif
{{ Form::close() }}
@endsection