/home2/mshostin/public_html/storage/framework/views/d6db1026627f3f345c0ea626ab0d132ddf8a30e5.php
<?php $__env->startSection('content'); ?>
<div class="row">
<div class="col-md-12">
<div class="card ">
<div class="card-header">
<div class="row">
<div class="col-8">
<h4 class="card-title">Vendors</h4>
</div>
<div class="col-4 text-right">
<a href="<?php echo e(route('providers.create')); ?>" class="btn btn-sm btn-primary">New Provider</a>
</div>
</div>
</div>
<div class="card-body">
<?php echo $__env->make('alerts.success', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<div class="">
<table class="table tablesorter " id="">
<thead class=" text-primary">
<th scope="col">Name</th>
<th scope="col">Description</th>
<th scope="col">Email</th>
<th scope="col">Telephone</th>
<th scope="col">Payments Made</th>
<th scope="col">Total Payment</th>
<th scope="col"></th>
</thead>
<tbody>
<?php $__currentLoopData = $providers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $provider): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($provider->name); ?></td>
<td><?php echo e($provider->description); ?></td>
<td>
<a href="mailto:<?php echo e($provider->email); ?>"><?php echo e($provider->email); ?></a>
</td>
<td><?php echo e($provider->phone); ?></td>
<td><?php echo e($provider->transactions->count()); ?></td>
<td>RS/ <?php echo e(abs($provider->transactions->sum('amount'))); ?></td>
<td class="td-actions text-right">
<a href="<?php echo e(route('providers.show', $provider)); ?>" class="btn btn-link" data-toggle="tooltip" data-placement="bottom" title="More Details">
<i class="tim-icons icon-zoom-split"></i>
</a>
<a href="<?php echo e(route('providers.edit', $provider)); ?>" class="btn btn-link" data-toggle="tooltip" data-placement="bottom" title="Edit Provider">
<i class="tim-icons icon-pencil"></i>
</a>
<form action="<?php echo e(route('providers.destroy', $provider)); ?>" method="post" class="d-inline">
<?php echo csrf_field(); ?>
<?php echo method_field('delete'); ?>
<button type="button" class="btn btn-link" data-toggle="tooltip" data-placement="bottom" title="Delete Provider" onclick="confirm('Are you sure you want to delete this provider? Records of payments made to him will not be deleted.') ? this.parentElement.submit() : ''">
<i class="tim-icons icon-simple-remove"></i>
</button>
</form>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
</div>
<div class="card-footer py-4">
<nav class="d-flex justify-content-end" aria-label="...">
<?php echo e($providers->links()); ?>
</nav>
</div>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', ['page' => 'List of Providers', 'pageSlug' => 'providers', 'section' => 'providers'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home2/mshostin/public_html/resources/views/providers/index.blade.php ENDPATH**/ ?>