Current File : //home/tradevaly/www/storage/framework/views/ff2b925e275fda7e6eacca66215a0a08ceaddd21.php |
<?php $__env->startPush('title'); ?>Buy Offers <?php $__env->stopPush(); ?>
<?php $__env->startSection('css'); ?>
<style>
nav.flex.items-center.justify-between {
display: none;
}
</style>
<!-- DataTables -->
<link href="<?php echo e(asset('/assets/libs/datatables/datatables.min.css')); ?>" rel="stylesheet" type="text/css" />
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<?php $__env->startComponent('components.breadcrumb'); ?>
<?php $__env->slot('li_1'); ?> Dashboards <?php $__env->endSlot(); ?>
<?php $__env->slot('title'); ?> Buy Offers <?php $__env->endSlot(); ?>
<?php echo $__env->renderComponent(); ?>
<div class="row">
<div class="col-12">
<form action="<?php echo e(route('admin.product.inquery')); ?>" method='post'>
<?php echo csrf_field(); ?>
<div class="card">
<div class="card-body">
<div class="row mb-2">
<div class="col-sm-4"></div>
<div class="col-sm-8"></div><!-- end col-->
</div>
<div class="table-responsive">
<table class="table" id="datatable-buttons">
<thead>
<tr>
<th class="text-center">#</th>
<!--1.title, 2. Product title with link, 3. Sender 4. Receiver 5. Time 6. Button, approved, delet details.-->
<th><?php echo e(translate("inquery Title")); ?></th>
<th><?php echo e(translate("Product Title")); ?></th>
<th><?php echo e(translate("Sender")); ?></th>
<th><?php echo e(translate("Sender Company")); ?></th>
<th><?php echo e(translate("Sender Country")); ?></th>
<th><?php echo e(translate("Receiver")); ?></th>
<th><?php echo e(translate("Receiver Company")); ?></th>
<th><?php echo e(translate("Time")); ?></th>
<th>Action</th>
<th>Check Box</th>
</tr>
</thead>
<form></form>
<tbody>
<?php
$i = 0;
?>
<?php $__currentLoopData = $offers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $offer): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php if($offer->buyer): ?>
<tr>
<?php $i++; ?>
<td class="text-center"><?php echo e($i); ?></td>
<td><a href="<?php echo e(route('buy.view', $offer->slug)); ?>"><?php echo e($offer['title']); ?></a></td>
<td>
<?php if($offer->product): ?>
<a href="<?php echo e(route('product.view',$offer->product->slug)); ?>"><?php echo e($offer->product->title); ?></a>
<?php endif; ?>
</td>
<td>
<?php if($offer->buyer->user): ?>
<?php echo e($offer->buyer->user->name); ?>
<?php endif; ?>
</td>
<td>
<?php if($offer->buyer): ?>
<?php echo e($offer->buyer->name); ?>
<?php endif; ?>
</td>
<td>
<?php if($offer->buyer->user->country): ?>
<?php echo e($offer->buyer->user->country->name); ?>
<?php endif; ?>
</td>
<td>
<?php if($offer->sellerUser): ?>
<?php echo e($offer->sellerUser->name); ?>
<?php endif; ?>
</td>
<td>
<?php if($offer->seller): ?>
<?php echo e($offer->seller->name); ?>
<?php endif; ?>
</td>
<td>
<?php echo e($offer->created_at->diffForHumans()); ?>
</td>
<td>
<a href="<?php echo e(route('admin.buy_offer.view',$offer->id)); ?>"class="btn btn-success" title="View" style="color: #fff">
<i class="fas fa-eye"></i>
</a>
<?php if($offer->status == 0): ?>
<a onclick="return confirm(\'Are you sure?\')" href="<?php echo e(route('admin.buy_offer.approve',$offer->id)); ?>" class="btn btn-warning" title="Edit" style="color: #fff">
<i class="fas fa-check"></i></a>
<?php endif; ?>
<a onclick="return confirm(\'Are you sure?\')" href="<?php echo e(route('admin.buy_offer.reject',$offer->id)); ?>" name="category" class="btn btn-danger confirmDelete" title="Delete" style="color: #fff">
<i class="fas fa-times"></i>
</a>
</td>
<td>
<?php if($offer->buyer->user->country): ?>
<div class="form-check">
<input class="form-check-input" type="checkbox" name=user_ids[] value="<?php echo e($offer->buyer->id); ?>" id="">
</div>
<?php endif; ?>
</td>
</tr>
<?php endif; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
<?php echo e($offers->links()); ?>
</table>
</div>
</div>
<div class="card-footer text-end">
<button type="submit" class="btn btn-success">Submit</button>
</div>
</div>
</form>
</div>
</div>
<!-- end row -->
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
<!-- Required datatable js -->
<script src="<?php echo e(asset('/assets/libs/datatables/datatables.min.js')); ?>"></script>
<script src="<?php echo e(asset('/assets/libs/jszip/jszip.min.js')); ?>"></script>
<script src="<?php echo e(asset('/assets/libs/pdfmake/pdfmake.min.js')); ?>"></script>
<!-- Datatable init js -->
<script type="text/javascript">
$(function () {
$(document).ready(function () {
var table = $('#datatable-buttons').DataTable({
lengthChange: false,
processing: true,
dom: 'Bfrtip',
serverSide: false,
buttons: ['copy', 'excel', 'pdf', 'colvis']
});
table.buttons().container().appendTo('#datatable-buttons_wrapper .col-md-6:eq(0)');
$(".dataTables_length select").addClass('form-select form-select-sm');
});
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('backend.ayaan.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/tradevaly/public_html/resources/views/backend/pages/users/buy_offer.blade.php ENDPATH**/ ?>