{!! Form::label('name', 'Name:') !!} {!! Form::text('name', null, ['class' => 'form-control', 'maxlength' => 255]) !!}
{!! Form::label('phone', 'Phone:') !!} {!! Form::text('phone', null, ['class' => 'form-control', 'maxlength' => 255]) !!}
{!! Form::label('email', 'Email:') !!} {!! Form::email('email', null, ['class' => 'form-control', 'maxlength' => 255]) !!}
{!! Form::label('address', 'Address:') !!} {!! Form::text('address', null, ['class' => 'form-control', 'maxlength' => 255]) !!}
@isset(auth()->user()->branch_id)
{!! Form::hidden('branch_id', auth()->user()->branch_id) !!}
@else
{!! Form::label('branch_id', 'Branch:') !!} {!! Form::select('branch_id', Common::getBranches(),null ,['class' => 'select2 form-select ','id'=>'branch_id']) !!}
@endisset