Viewing file: f57e0ef0e002d7b7cb85e34a72bd628c.php (9.69 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> <?php echo e(trans('admin.became_seller_details')); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('extra-css'); ?> <style> .document-download-section{ position: absolute; bottom: 0px; width: 95%; padding: 10px 10px; z-index: 9; cursor: pointer; right: 4%; } .document-download-section:hover{ background: #d3c7df3d; } .preview-document-image{ height: 100%; width: 100%; } </style> <?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-10 mx-auto mt-3"> <div class="card p-4"> <div class="card-header"> <h2 class="card-title"><?php echo e(trans('admin.became_seller_details')); ?></h2> </div> <!-- /.card-header --> <div class="card-body"> <div class="row mb-4"> <div class="col-md-6"> <h5><strong><?php echo e(trans('customer.name')); ?> :</strong> <?php echo e(isset($becameSeller->customer)?$becameSeller->customer->fullname:''); ?></h5> <h6> <strong><?php echo e(trans('customer.email')); ?> :</strong> <?php echo e(isset($becameSeller->customer)?$becameSeller->customer->email:''); ?></h6> <h6><strong><?php echo e(trans('customer.address')); ?> :</strong> <?php echo e($becameSeller->address); ?></h6> <h6><strong><?php echo e(trans('customer.country')); ?> :</strong> <?php echo e($becameSeller->country); ?></h6> <h6><strong><?php echo e(trans('customer.city')); ?> :</strong> <?php echo e($becameSeller->city); ?></h6> <h6><strong><?php echo e(trans('customer.zip_code')); ?> :</strong> <?php echo e($becameSeller->zip_code); ?></h6> </div> <div class="col-md-6 justify-content-end"> <div class="float-right text-right"> <?php if($becameSeller->status=='pending'): ?> <button class="mr-1 btn btn-sm btn-success" data-message="Are you sure you want to <b>Approved</b> this request?" data-action="<?php echo e(route('admin.became.seller.status')); ?>" data-input={"id":<?php echo e($becameSeller->id); ?>,"status":"approved"} data-toggle="modal" data-target="#modal-confirm" title="Approved"><i class="fa fa-check"></i> </button>
<button class="mr-1 btn btn-sm btn-danger" data-message="Are you sure you want to <b>Reject</b> this request? <input type='text' class='form-control mt-4' placeholder='Enter rejected reason' name='reason'>" data-action="<?php echo e(route('admin.became.seller.status')); ?>" data-input={"id":<?php echo e($becameSeller->id); ?>,"status":"rejected"} data-toggle="modal" data-target="#modal-confirm" title="Rejected"><i class="fa fa-times"></i> </button> <?php elseif($becameSeller->status=='approved'): ?> <button class="mr-1 btn btn-sm btn-danger" data-message="Are you sure you want to <b>Reject</b> this request? <input type='text' class='form-control mt-4' placeholder='Enter rejected reason' name='reason'>" data-action="<?php echo e(route('admin.became.seller.status')); ?>" data-input={"id":<?php echo e($becameSeller->id); ?>,"status":"rejected"} data-toggle="modal" data-target="#modal-confirm" title="Rejected"><i class="fa fa-times"></i> </button> <?php else: ?> <button class="btn d-block mt-3 btn-sm btn-<?php echo e($becameSeller->status=='approved'?'success':'danger'); ?>" disabled type="button" title="Rejected"><i class="fa fa-times"></i></button> <?php endif; ?> </div> </div> </div> <hr> <div class="row mt-3"> <div class="col-md-4"> <div class="text-center"> <h6 class="mb-2 text-danger font-weight-bold"><u>NID Card</u></h6> <a href="#"> <div> <?php if(isset($becameSeller->documents) && isset(json_decode($becameSeller->documents)->nid_card)): ?> <img src="<?php echo e(asset('uploads/reseller/'.json_decode($becameSeller->documents)->nid_card)); ?>" class="img-fluid preview-img" data-title="NID Card" alt=""> <?php endif; ?> <a href="<?php echo e(route('admin.download.seller.document',['id'=>$becameSeller->id,'type'=>'nid_card'])); ?>"><i class="fa fa-download float-right"></i></a> </div> </a> </div> </div>
<div class="col-md-4"> <div class="text-center"> <h6 class="mb-2 text-danger font-weight-bold"><u>TD License Card</u></h6> <a href="#"> <div> <?php if(isset($becameSeller->documents) && isset(json_decode($becameSeller->documents)->td_license)): ?> <img src="<?php echo e(asset('uploads/reseller/'.json_decode($becameSeller->documents)->td_license)); ?>" class="img-fluid preview-img" data-title="TD License" alt=""> <?php endif; ?> <a href="<?php echo e(route('admin.download.seller.document',['id'=>$becameSeller->id,'type'=>'td_license'])); ?>"><i class="fa fa-download float-right"></i></a> </div> </a> </div> </div>
<div class="col-md-4"> <div class="text-center"> <h6 class="mb-2 text-danger font-weight-bold"><u>Picture</u></h6> <a href="#"> <div> <?php if(isset($becameSeller->documents) && isset(json_decode($becameSeller->documents)->picture)): ?> <img src="<?php echo e(asset('uploads/reseller/'.json_decode($becameSeller->documents)->picture)); ?>" data-title="Picture" class="img-fluid preview-img" alt=""> <?php endif; ?> <a href="<?php echo e(route('admin.download.seller.document',['id'=>$becameSeller->id,'type'=>'picture'])); ?>"><i class="fa fa-download float-right"></i></a> </div> </a> </div> </div> </div> </div> <!-- /.card-body --> </div> <!-- /.card --> </div> <!-- /.col --> </div> <!-- /.row --> </section> <!-- /.content -->
<!-- Modal --> <div class="modal fade" id="previewModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true"> <div class="modal-dialog modal-lg modal-dialog-centered" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="previewModalTitle"> </h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <div class="showPreviewImage">
</div> </div>
</div> </div> </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('extra-scripts'); ?> <script> $(document).on('click', '.preview-img', function(e){ const src = $(this).attr('src'); const title = $(this).attr('data-title'); console.log(src)
$('.showPreviewImage').html(`<img src=${src} class="preview-document-image">`); $('#previewModalTitle').text(title); $('#previewModal').modal('show'); }) </script> <?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/sms.picotech.app/public_html/resources/views/became_seller/details.blade.php ENDPATH**/ ?>
|