<?php $__env->startSection('content'); ?>
<div class="panel panel-default">
    <div class="panel-heading">Xero customers found by '<?php echo e($search_query); ?>'</div>
    

    <div class="panel-body">
       	<form method="post" action="<?php echo e(route('xero-customers.search')); ?>" >
	    <input type="hidden" value="<?php echo e(csrf_token()); ?>" name="_token" />
	        <div class="form-group">
	            <label for="title">Search by name or account number:</label>
	            <input type="text" class="form-control" name="search" value="<?php echo e($search_query); ?>"/>
	        </div>
	         <button type="submit" class="btn btn-primary">search</button>
	     </form>

        <table class="table">
			<?php $__currentLoopData = $xeroCustomers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $customer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
				<tr>
					
					<td>
						<a href="<?php echo e(route('xero-customers.show',$customer->id)); ?>"><?php echo e($customer->xero_name); ?></a>
					</td>
					<td>
						<?php echo e($customer->email); ?>

					</td>
					<td>
						<?php echo e($customer->xero_account_number); ?>

					</td>
					<td>
						<a class="btn btn-primary" href="<?php echo e(route('xero-customers.edit',$customer->id)); ?>">Edit</a>
					</td>
				</tr>
			<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
		</table>

		
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Users/joraleqyan/PhpstormProjects/xero/resources/views/xero_customers/search.blade.php ENDPATH**/ ?>