<div class="col-md-3 mb-2">
    <div class="card shadow">
        <div class="card-header text-center custom-common-card-header">
            <h4 class="mb-0 pb-0">Shop Details</h4>
            
            
        </div>
        <div class="leads rounded">
            <div class="leads_profile text-center mb-3">
                
                
                

                
            </div>

            <div class="leads_user_info ">
                
                <div class="separator"></div>
                <div id="kt_user_view_details" class="collapse show custom-overflow-scroll">
                    <div class="fs-6">

                        <div class="d-flex align-items-center justify-content-between mb-2">
                            <div class="fw-bold px-2">Shop Name: </div>
                            <div class="text-gray-600">
                                <a href="#" class="text-gray-600 text-hover-primary"><?php echo e($singleShopData->shop_name); ?></a>
                            </div>
                        </div>
                        
                        <div class="d-flex align-items-center justify-content-between mb-2">
                            <div class="fw-bold px-2">Shop Type: </div>
                            <div class="text-gray-600">
                                <a href="#" class="text-gray-600 text-hover-primary"><?php echo e($singleShopData->businessTypeData->type_name); ?></a>
                            </div>
                        </div>
                        
                        <div class="d-flex align-items-center justify-content-between mb-2">
                            <div class="fw-bold px-2">Floor: </div>
                            <div class="text-gray-600">
                                <a href="#" class="text-gray-600 text-hover-primary"><?php echo e($singleShopData->floorData->floor_name); ?></a>
                            </div>
                        </div>
                        
                        <div class="d-flex align-items-center justify-content-between mb-2">
                            <div class="fw-bold px-2">Shop No: </div>
                            <div class="text-gray-600">
                                <a href="#" class="text-gray-600 text-hover-primary"><?php echo e($singleShopData->shop_no); ?></a>
                            </div>
                        </div>
                        
                        <div class="d-flex align-items-center justify-content-between mb-2">
                            <div class="fw-bold px-2">Shop Size (SF): </div>
                            <div class="text-gray-600">
                                <a href="#" class="text-gray-600 text-hover-primary"><?php echo e($singleShopData->shop_size); ?></a>
                            </div>
                        </div>
                        
                        <div class="d-flex align-items-center justify-content-between mb-2">
                            <div class="fw-bold px-2">Charge (Per-SF): </div>
                            <div class="text-gray-600">
                                <a href="#" class="text-gray-600 text-hover-primary"><?php echo e($singleShopData->serviceChargeData->service_charge); ?>Tk</a>
                            </div>
                        </div>
                        
                        <div class="d-flex align-items-center justify-content-between mb-2">
                            <div class="fw-bold px-2">Shop Details </div>
                            <div class="text-gray-600 text-justify text-end">
                                <a href="#" class="text-gray-600 text-hover-primary"><?php echo e($singleShopData->shop_description); ?></a>
                            </div>
                        </div>
                        
                        

                    </div>
                </div>
            </div>
        </div>

        <div class="card-footer">
          <a href="#" class="btn btn-primary custom-profile-security w-100" data-bs-toggle="modal"
            data-bs-target="#editShop">Update Shop</a>
        </div>
    </div>

    <div class="card shadow mt-3">
      <div class="card-header text-center custom-common-card-header">
        <h4 class="mb-0 pb-0">Payment Details</h4>
      </div>
      <div class="leads rounded">
    
        <div class="leads_user_info ">
          <div class="separator"></div>
          <div id="kt_user_view_details" class="collapse show">
            <div class="fs-6">
    
              <div class="d-flex align-items-center justify-content-between">
                <div class="fw-bold mt-3">Net Amount:</div>
                <div class="text-gray-600">
                  <p class="mb-0 text-primary fw-bolder"><?php echo e($totalNetPrice); ?>tk</p>
                </div>
              </div>
    
              <div class="d-flex align-items-center justify-content-between">
                <div class="fw-bold mt-3">Paid Amount:</div>
                <div class="text-gray-600">
                  <p class="mb-0 text-success fw-bolder"><?php echo e($totalPaidPrice); ?>tk</p>
                </div>
              </div>
    
              <div class="d-flex align-items-center justify-content-between">
    
                <div class="fw-bold mt-3">Due Amount:</div>
                <div class="text-danger fw-bolder"><?php echo e($totalDuePrice); ?>tk</div>
              </div>
    
            </div>
          </div>
        </div>
      </div>
    </div>
</div>



<div class="modal fade" id="editShop" tabindex="-1" aria-labelledby="oneInputModalLabel" aria-hidden="true"
    data-bs-backdrop="static">
    <div class="modal-dialog modal-dialog-centered max-width-900px">
        <div class="modal-content">
            <div class="modal-header">
                <h1 class="modal-title fs-5" id="oneInputModalLabel">Update Lead</h1>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <form action="<?php echo e(route('shop.update', $singleShopData->id)); ?>" method="post" enctype="multipart/form-data"
                    onsubmit="return checkValidateForUpdate(<?php echo e($singleShopData->id); ?>)">
                    <?php echo csrf_field(); ?>
                    <?php echo method_field('put'); ?>
                    <div class="row px-4">
                      <div class=" col-md-4 my-1">
                        <div class="">
                          <div class="form-group custom-select2-form 
                            <?php echo e($floorData->count() > 0 ? '' : 'custom-null-select2-body'); ?>

                            ">
                            <label for="floor_id">Floor <span class=" text-danger">(required)</span>
                            </label>
                            <select name="floor_id" id="floor_id" class="form-select select2" required>
                              <option value="" selected disabled>Select Floor</option>
                              <?php $__currentLoopData = $floorData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $singleFD): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                              <option value="<?php echo e($singleFD->id); ?>"
                                <?php echo e($singleShopData->floor_id == $singleFD->id ? 'selected' : ''); ?>

                                ><?php echo e($singleFD->floor_name); ?></option>
                              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                          </div>

                          <?php $__errorArgs = ['floor_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                          <span class=text-danger><?php echo e($message); ?></span>
                          <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                      </div>

                      <div class=" col-md-4 my-1">
                        <div class="">
                          <div class="form-group custom-select2-form 
                            <?php echo e($businessTypeData->count() > 0 ? '' : 'custom-null-select2-body'); ?>

                            ">
                            <label for="business_type_id">Business Type <span class=" text-danger">(required)</span>
                            </label>
                            <select name="business_type_id" id="business_type_id" class="form-select select2" required>
                              <option value="" selected disabled>Select Business Type</option>
                              <?php $__currentLoopData = $businessTypeData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $singleSTD): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                              <option value="<?php echo e($singleSTD->id); ?>"
                                <?php echo e($singleShopData->business_type_id == $singleSTD->id ? 'selected' : ''); ?>

                                ><?php echo e($singleSTD->type_name); ?></option>
                              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                          </div>

                          <?php $__errorArgs = ['business_type_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                          <span class=text-danger><?php echo e($message); ?></span>
                          <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                      </div>
                      
                      <div class=" col-md-4 my-1">
                        <div class="">
                          <div class="form-group custom-select2-form 
                            <?php echo e($serviceChargeData->count() > 0 ? '' : 'custom-null-select2-body'); ?>

                            ">
                            <label for="service_charge_id">Service Charge <span class=" text-danger">(required)</span>
                            </label>
                            <select name="service_charge_id" id="service_charge_id" class="form-select select2" required>
                              <option value="" selected disabled>Select Service Charge</option>
                              <?php $__currentLoopData = $serviceChargeData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $singleSCD): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                              <option value="<?php echo e($singleSCD->id); ?>"
                                <?php echo e($singleShopData->service_charge_id == $singleSCD->id ? 'selected' : ''); ?>

                                ><?php echo e($singleSCD->service_charge); ?></option>
                              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                          </div>

                          <?php $__errorArgs = ['service_charge_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                          <span class=text-danger><?php echo e($message); ?></span>
                          <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                      </div>

                      <div class=" col-md-4 my-1">
                        <label for="shop_name" class="form-label mb-2">Shop Name <span class="text-danger">(required)</span></label>
                        <input type="text" class="form-control  form-control-solid" name="shop_name" id="shop_name" placeholder="Shop Name"
                          value="<?php echo e($singleShopData->shop_name); ?>" required>
                      
                        <?php $__errorArgs = ['shop_name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <span class=text-danger><?php echo e($message); ?></span>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                      </div>

                      <div class=" col-md-4 my-1">
                        <label for="shop_no" class="form-label mb-2">Shop No <span
                            class="text-danger">(required)</span></label>
                        <input type="number" class="form-control  form-control-solid" name="shop_no" id="shop_no"
                          placeholder="Shop No" value="<?php echo e($singleShopData->shop_no); ?>" required>

                        <?php $__errorArgs = ['shop_no'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <span class=text-danger><?php echo e($message); ?></span>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                      </div>

                      <div class=" col-md-4 my-1">
                        <label for="shop_size" class="form-label mb-2">Floor Size <span
                            class="text-danger">(required)</span></label>
                        <input type="number" class="form-control  form-control-solid" name="shop_size" id="shop_size"
                          placeholder="Floor Size" value="<?php echo e($singleShopData->shop_size); ?>" required>

                        <?php $__errorArgs = ['shop_size'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <span class=text-danger><?php echo e($message); ?></span>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                      </div>

                      <div class=" col-md-6 my-1">
                        <div class="">
                          <div class="form-group custom-select2-form 
                            <?php echo e($shopOwnerData->count() > 0 ? '' : 'custom-null-select2-body'); ?>

                            ">
                            <label for="shop_owner_id">Shop Owner <span class=" text-danger">(required)</span>
                            </label>
                            <select name="shop_owner_id" id="shop_owner_id" class="form-select select2" required>
                              <option value="" selected disabled>Select Shop Owner</option>
                              <?php $__currentLoopData = $shopOwnerData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $singleSOD): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                              <option value="<?php echo e($singleSOD->id); ?>"
                                <?php echo e($singleShopData->shop_owner_id == $singleSOD->id ? 'selected' : ''); ?>

                                ><?php echo e(Str::title($singleSOD->name)); ?> / <?php echo e($singleSOD->mobile); ?></option>
                              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                          </div>

                          <?php $__errorArgs = ['shop_owner_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                          <span class=text-danger><?php echo e($message); ?></span>
                          <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                      </div>
                      
                      <div class=" col-md-6 my-1">
                        <div class="">
                          <div class="form-group custom-select2-form 
                            <?php echo e($shopKeeperData->count() > 0 ? '' : 'custom-null-select2-body'); ?>

                            ">
                            <label for="shop_keeper_id">Shop Keeper <span class=" text-danger">(required)</span>
                            </label>
                            <select name="shop_keeper_id" id="shop_keeper_id" class="form-select select2" required>
                              <option value="" selected disabled>Select Shop Keeper</option>
                              <?php $__currentLoopData = $shopKeeperData; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $singleSKD): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                              <option value="<?php echo e($singleSKD->id); ?>"
                                <?php echo e($singleShopData->shop_keeper_id == $singleSKD->id ? 'selected' : ''); ?>

                                ><?php echo e(Str::title($singleSKD->name)); ?> / <?php echo e($singleSKD->mobile); ?></option>
                              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                          </div>

                          <?php $__errorArgs = ['shop_keeper_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                          <span class=text-danger><?php echo e($message); ?></span>
                          <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                        </div>
                      </div>

                      <div class="col-md-12 my-1">
                        <div class="form-group">
                          <label for="shop_description">Shop Details<span class="text-danger"></span>
                          </label>
                      
                          <textarea name="shop_description" id="shop_description" cols="10" rows="2" placeholder="Details"
                            class="form-control form-control-solid"><?php echo e($singleShopData->shop_description); ?></textarea>
                        </div>
                      
                        <?php $__errorArgs = ['shop_description'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                        <span class=text-danger><?php echo e($message); ?></span>
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
                      </div>

                    </div>
                    <div class="modal-footer">
                        <div class="">
                            <button type="submit" class="btn btn-success">Update</button>
                            <button type="button" class="btn btn-danger" data-bs-dismiss="modal">Cancel</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div><?php /**PATH E:\Project\Personal-Project\Office-Project\Next-Web-Service\muktijoddhe-somobai-somity\resources\views/admin/shop/profile/partials/sidebar.blade.php ENDPATH**/ ?>