 <?php $__env->startSection('title'); ?> <?php echo app('translator')->getFromJson('View Vendors Request'); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('page-header-title'); ?> <?php echo app('translator')->getFromJson('View Vendors Request'); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('page-header-description'); ?> <?php echo app('translator')->getFromJson('View and Pay Vendors Request'); ?> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <?php if(Auth::user()->can('read', App\Vendor::class) && Auth::user()->can('update', App\Vendor::class)): ?> <div class="row"> <div class="col-md-12"> <div class="vendor-requests-payout table-responsive"> <table class="table table-bordered"> <thead> <tr> <th><?php echo app('translator')->getFromJson('Request Date'); ?></th> <th><?php echo app('translator')->getFromJson('Shop Name'); ?></th> <th><?php echo app('translator')->getFromJson('Company Name'); ?></th> <th><?php echo app('translator')->getFromJson('Phone'); ?></th> <th><?php echo app('translator')->getFromJson('Action'); ?></th> </tr> </thead> <tbody> <?php if(count($vendor_all_requests) > 0): ?> <?php $__currentLoopData = $vendor_all_requests; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $vendor_request): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($vendor_request->created_at->format('d-m-Y h:i A')); ?></td> <td><?php echo e($vendor_request->vendor->shop_name); ?></td> <td><?php echo e($vendor_request->vendor->name); ?></td> <td><?php echo e($vendor_request->vendor->phone ? $vendor_request->vendor->phone : '-'); ?></td> <td> <a href="<?php echo e(route('manage.vendors.show', ['vendor' => $vendor_request->vendor->id])); ?>"> <?php echo app('translator')->getFromJson('Make Payment'); ?> </a> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php else: ?> <tr> <td colspan="6" class="text-center"><?php echo app('translator')->getFromJson('No payout request found.'); ?></td> </tr> <?php endif; ?> </tbody> </table> </div> <div class="text-right"> <?php echo e($vendor_all_requests->links()); ?> </div> </div> </div> <hr> <?php endif; ?> <?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.manage', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>