/home2/mshostin/www/storage/framework/views/cbd25977c07349e987b3276fd4984b411890406f.php
<?php $__env->startSection('content'); ?>
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header">
<h4 class="card-title">Provider Information</h4>
</div>
<div class="card-body">
<table class="table">
<thead>
<th>ID</th>
<th>Name</th>
<th>Description</th>
<th>Email</th>
<th>Telephone</th>
<th>Payment information</th>
<th>Payments Made</th>
<th>Total Payment</th>
</thead>
<tbody>
<tr>
<td><?php echo e($provider->id); ?></td>
<td><?php echo e($provider->name); ?></td>
<td><?php echo e($provider->description); ?></td>
<td><?php echo e($provider->email); ?></td>
<td><?php echo e($provider->phone); ?></td>
<td style="max-width: 175px"><?php echo e($provider->paymentinfo); ?></td>
<td><?php echo e($provider->transactions->count()); ?></td>
<td>RS/ <?php echo e(abs($provider->transactions->sum('amount'))); ?></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header">
<h4 class="card-title">Latest Payments</h4>
</div>
<div class="card-body">
<table class="table">
<thead>
<th>Date</th>
<th>ID</th>
<th>Title</th>
<th>Method</th>
<th>Amount</th>
<th>Reference</th>
</thead>
<tbody>
<?php $__currentLoopData = $transactions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $transaction): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e(date('d-m-y', strtotime($transaction->created_at))); ?></td>
<td><?php echo e($transaction->id); ?></td>
<td><?php echo e($transaction->title); ?></td>
<td><a href="<?php echo e(route('methods.show', $transaction->method)); ?>"><?php echo e($transaction->method->name); ?></a></td>
<td>RS/ <?php echo e($transaction->amount); ?></td>
<td><?php echo e($transaction->reference); ?></td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header">
<h4 class="card-title">Latest Receipts</h4>
</div>
<div class="card-body">
<table class="table">
<thead>
<th>Date</th>
<th>ID</th>
<th>Title</th>
<th>products</th>
<th>Stock</th>
<th>Defective Stock</th>
<th>Total Stock</th>
<th></th>
</thead>
<tbody>
<?php $__currentLoopData = $receipts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $receipt): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e(date('d-m-y', strtotime($receipt->created_at))); ?></td>
<td><a href="<?php echo e(route('receipts.show', $receipt)); ?>"><?php echo e($receipt->id); ?></a></td>
<td><?php echo e($receipt->title); ?></td>
<td><?php echo e($receipt->products->count()); ?></td>
<td><?php echo e($receipt->products->sum('stock')); ?></td>
<td><?php echo e($receipt->products->sum('stock_defective')); ?></td>
<td><?php echo e($receipt->products->sum('stock') + $receipt->products->sum('stock_defective')); ?></td>
<td class="td-actions text-right">
<a href="<?php echo e(route('receipts.show', $receipt)); ?>" class="btn btn-link" data-toggle="tooltip" data-placement="bottom" title="Ver Receipt">
<i class="tim-icons icon-zoom-split"></i>
</a>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', ['page' => 'Provider Information', 'pageSlug' => 'providers', 'section' => 'providers'], \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\inventrySystem\resources\views/providers/show.blade.php ENDPATH**/ ?>