<?php $__env->startSection('section_title'); ?>
<strong>Manually Assign a Company to <?php echo e($user->name); ?></strong>
<br>
<a href="/admin/users">Users Overview</a>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('section_body'); ?>

<div class="row">
	<div class="col-xs-12 col-lg-6">
		<form method="POST">
		<?php echo csrf_field(); ?>
		<label>Select a company from the list</label>
		<hr>
		If you need to remove an assignment, just select "None" and hit save<br>
		Only unassigned companies appear in this list
		<hr>
		<select name="companyID" class="form-control select2">
			<option value="">None</option>
			<?php if( $user->company): ?> )
			<option value="<?php echo e($user->company->id); ?>" selected>Currently Assigned: <?php echo e($user->company->business_name); ?> (<?php echo e($user->company->url); ?>)</option>
			<?php endif; ?>
			<?php $__currentLoopData = $companies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
			<option value="<?php echo e($c->id); ?>"><?php echo e($c->business_name); ?> (<?php echo e($c->url); ?>)</option>
			<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
		</select>
		<br><br>
		<input type="submit" name="sb" value="Assign Company" class="btn btn-primary">
		</form>
	</div><!-- /.col-xs-12 col-lg-4 -->
</div><!-- /.row -->
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.base', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/chaint/medrate.nexmatics.africa/resources/views/admin/manually-assign-company.blade.php ENDPATH**/ ?>