Viewing file: a55343d233ec6a3f420aa6f57574dd31c05ec6dc.php (14.13 KB) -rwxrwxrwx Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> Vendors <?php $__env->stopSection(); ?>
<?php $__env->startSection('css'); ?>
<link rel="stylesheet" href="<?php echo e(URL::asset('assets/libs/glightbox/glightbox.min.css')); ?>">
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<?php $__env->startComponent('components.breadcrumb'); ?>
<?php $__env->slot('li_1'); ?> People <?php $__env->endSlot(); ?>
<?php $__env->slot('title'); ?>Vendors <?php $__env->endSlot(); ?>
<?php echo $__env->renderComponent(); ?>
<div class="row">
<div class="col-lg-12">
<div class="card">
<?php if($errors->any()): ?>
<div class="alert alert-danger">
<?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<span class="each-error"><?php echo e($error); ?> </span><br/>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
<?php endif; ?>
<?php if(session()->has('message')): ?>
<div class="alert alert-success">
<?php echo e(session()->get('message')); ?>
</div>
<?php endif; ?>
<div class="card-header border-0">
<div class="d-flex align-items-center">
<h5 class="card-title mb-0 flex-grow-1">Vendor Info</h5>
<div class="flex-shrink-0">
<?php if($vendor->verified==2): ?>
<button type="button" class="btn btn-success add-btn"
id="create-btn" title="KYC Approved" disable> Approved
</button>
<?php else: ?>
<button type="button" class="btn btn-success add-btn" data-bs-toggle="modal"
id="create-btn" data-bs-target="#approveModal"> Approve
</button>
<?php endif; ?>
</div>
</div>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-borderless">
<tbody>
<tr>
<th class="ps-0" scope="row">Full Name :</th>
<td class="text-muted"><?php echo e($vendor->first_name); ?> <?php echo e($vendor->last_name); ?></td>
<th class="ps-0" scope="row">Email :</th>
<td class="text-muted"><?php echo e($vendor->email); ?></td>
<th class="ps-0" scope="row">Phone :</th>
<td class="text-muted"><?php echo e($vendor->phone); ?></td>
</tr>
<tr>
<th class="ps-0" scope="row">Store Name :</th>
<td class="text-muted"><?php echo e($store->store_name); ?> </td>
<th class="ps-0" scope="row">District :</th>
<td class="text-muted"><?php echo e($store->district_data->name); ?></td>
<th class="ps-0" scope="row">Location :</th>
<td class="text-muted"><?php echo e($store->address); ?></td>
</tr>
<tr>
<th class="ps-0" scope="row">KYC Status :</th>
<td class="text-muted">
<?php if($vendor->verified==0): ?>
<span class="badge badge-soft-danger text-uppercase">Not Submited</span>
<?php elseif($vendor->verified==1): ?>
<span class="badge badge-soft-info text-uppercase">Pending</span>
<?php elseif($vendor->verified==2): ?>
<span class="badge badge-soft-success text-uppercase">Verified</span>
<?php else: ?>
<span class="badge badge-soft-danger text-uppercase">Rejected</span>
<?php endif; ?>
</td>
<th class="ps-0" scope="row">Vendor Status :</th>
<td class="text-muted">
<?php if($vendor->active==1): ?>
<span class="badge badge-soft-success text-uppercase">Active</span>
<?php else: ?>
<span class="badge badge-soft-danger text-uppercase">Not Active</span>
<?php endif; ?>
</td>
</tr>
</tbody>
</table>
</div>
<?php
$image_folder=$vendor->image_folder;
$base_url="https://jiffp.sgp1.digitaloceanspaces.com/";
?>
<!-- image start -->
<div class="row">
<div class="element-item col-xxl-3 col-xl-4 col-sm-6 photography" data-category="photography">
<div class="gallery-box card">
<div class="gallery-container">
<a class="image-popup" href='<?php echo e($base_url.$image_folder."/kyc/".$vendor->kyc_Data->front.".webp"); ?>' title="">
<img class="gallery-img img-fluid mx-auto" style="height:200px !important; width:100%;" src='<?php echo e($base_url.$image_folder."/kyc/".$vendor->kyc_Data->front.".webp"); ?>' alt="" />
<div class="gallery-overlay">
<h5 class="overlay-caption">Front View </h5>
</div>
</a>
</div>
<!-- <div class="box-content">
<div class="d-flex align-items-center mt-1">
<div class="flex-grow-1 text-muted">by <a href="" class="text-body text-truncate">Erica Kernan</a></div>
<div class="flex-shrink-0">
<div class="d-flex gap-3">
<button type="button" class="btn btn-sm fs-12 btn-link text-body text-decoration-none px-0">
<i class="ri-thumb-up-fill text-muted align-bottom me-1"></i> 3.4K
</button>
<button type="button" class="btn btn-sm fs-12 btn-link text-body text-decoration-none px-0">
<i class="ri-question-answer-fill text-muted align-bottom me-1"></i> 1.3k
</button>
</div>
</div>
</div>
</div> -->
</div>
</div>
<?php if($vendor->kyc_Data->back): ?>
<div class="element-item col-xxl-3 col-xl-4 col-sm-6 photography" data-category="photography">
<div class="gallery-box card">
<div class="gallery-container">
<a class="image-popup" href='<?php echo e($base_url.$image_folder."/kyc/".$vendor->kyc_Data->back.".webp"); ?>' title="">
<img class="gallery-img img-fluid mx-auto" style="height:200px !important; width:100%;" src='<?php echo e($base_url.$image_folder."/kyc/".$vendor->kyc_Data->back.".webp"); ?>' alt="" />
<div class="gallery-overlay">
<h5 class="overlay-caption">Back View </h5>
</div>
</a>
</div>
</div>
</div>
<?php endif; ?>
<div class="element-item col-xxl-3 col-xl-4 col-sm-6 photography" data-category="photography">
<div class="gallery-box card">
<div class="gallery-container">
<a class="image-popup" href='<?php echo e($base_url.$image_folder."/kyc/".$vendor->kyc_Data->face.".webp"); ?>' title="">
<img class="gallery-img img-fluid mx-auto" style="height:200px !important; width:100%;" src='<?php echo e($base_url.$image_folder."/kyc/".$vendor->kyc_Data->face.".webp"); ?>' alt="" />
<div class="gallery-overlay">
<h5 class="overlay-caption">Face </h5>
</div>
</a>
</div>
</div>
</div>
<div class="element-item col-xxl-3 col-xl-4 col-sm-6 photography" data-category="photography">
<div class="gallery-box card">
<div class="gallery-container">
<a class="image-popup" href='<?php echo e($base_url.$image_folder."/kyc/".$vendor->kyc_Data->signature.".webp"); ?>' title="">
<img class="gallery-img img-fluid mx-auto" style="height:200px !important; width:100%;" src='<?php echo e($base_url.$image_folder."/kyc/".$vendor->kyc_Data->signature.".webp"); ?>' alt="" />
<div class="gallery-overlay">
<h5 class="overlay-caption">Signature </h5>
</div>
</a>
</div>
</div>
</div>
</div>
<!-- image end -->
<!-- approve modal start -->
<div class="modal fade flip" id="approveModal" tabindex="-1" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-body p-5 text-center">
<lord-icon src="https://cdn.lordicon.com/dnmvmpfk.json"
trigger="loop" colors="primary:#405189,secondary:#f06548"
style="width:90px;height:90px"></lord-icon>
<div class="mt-4 text-center">
<h4>You are about to Approve the vendor ?</h4>
<div class="hstack gap-2 justify-content-center remove">
<form method="POST"class="needs-validation" id="kyc_form" action="<?php echo e(route('approve_vendor',['vendor_id'=>$vendor->id] )); ?>">
<?php echo csrf_field(); ?>
<!-- <input type="hidden" id="vendor_id" name="vendor_id" value="<?php echo e($vendor->id); ?>"/> -->
<button type="button"
class="btn btn-link link-success fw-medium text-decoration-none"
data-bs-dismiss="modal" id="deleteRecord-close" ><i
class="ri-close-line me-1 align-middle"></i>
Close</button>
<button class="btn btn-danger" type="submit" name="action" value="3" id="reject-record">No,
Reject</button>
<button class="btn btn-success" type="submit" name="action" value="2" id="approve-record">Yes,
Approve</button>
</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- approve modal end -->
</div>
</div>
</div>
<!--end col-->
</div>
<!--end row-->
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
<script src="<?php echo e(URL::asset('/assets/libs/glightbox/glightbox.min.js')); ?>"></script>
<script src="<?php echo e(URL::asset('/assets/libs/isotope-layout/isotope-layout.min.js')); ?>"></script>
<script src="<?php echo e(URL::asset('/assets/js/pages/gallery.init.js')); ?>"></script>
<script src="<?php echo e(URL::asset('assets/js/pages/form-validation.init.js')); ?>"></script>
<script src="<?php echo e(URL::asset('assets/js/pages/select2.init.js')); ?>"></script>
<script src="<?php echo e(URL::asset('assets/js/pages/datatables.init.js')); ?>"></script>
<script src="<?php echo e(URL::asset('/assets/js/app.min.js')); ?>"></script>
<script>
// $("#approve-record").click(function(){
// $("#kyc_form").submit(); // Submit the form
// });
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\jiff\default\resources\views/pages/people/vendor/details.blade.php ENDPATH**/ ?>
|