

<?php $__env->startSection('title', 'Edit Shop'); ?>

<?php $__env->startSection('content'); ?>

  <div class="row">
    <div class="col-lg-12">
      <div class="card">
        <div class="card-body">
            <div class="d-flex justify-content-between align-items-center mb-3">
			<h6 class="card-title mb-0">Edit Shop</h6>

             </div>

          <form action="<?php echo e(route('shops.update', $shop)); ?>" method="post">
            <?php echo csrf_field(); ?>
            <?php echo method_field('put'); ?>
            <div class="mb-3">
              <label class="form-label">Shop Name</label>
              <input type="text" class="form-control" value="<?php echo e($shop->name); ?>" disabled>
            </div>
            <div class="mb-3">
              <label class="form-label">Phone</label>
              <input type="text" name="phone" class="form-control" value="<?php echo e(old('phone', $shop->phone)); ?>">
              <?php $__errorArgs = ['phone'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="text-danger small"><?php echo e($message); ?></div><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
            </div>
            <div class="mb-3">
              <label class="form-label">Email</label>
              <input type="email" name="email" class="form-control" value="<?php echo e(old('email', $shop->email)); ?>">
              <?php $__errorArgs = ['email'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="text-danger small"><?php echo e($message); ?></div><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
            </div>
            <div class="row">
              <div class="col-md-4 mb-3">
                <label class="form-label">Commission Rate (%)</label>
                <input type="number" step="0.01" name="commission_rate" class="form-control" value="<?php echo e(old('commission_rate', $shop->commission_rate ?? '0')); ?>" min="0" max="100">
                <?php $__errorArgs = ['commission_rate'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="text-danger small"><?php echo e($message); ?></div><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
              </div>
              <div class="col-md-4 mb-3">
                <label class="form-label">Security Deposit</label>
                <input type="number" step="0.01" name="security_deposit" class="form-control" value="<?php echo e(old('security_deposit', $shop->security_deposit ?? '0')); ?>" min="0">
                <?php $__errorArgs = ['security_deposit'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="text-danger small"><?php echo e($message); ?></div><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
              </div>
              <div class="col-md-4 mb-3 d-flex align-items-end">
                <div class="form-check pb-2">
                  <input type="hidden" name="is_security_account" value="0">
                  <input class="form-check-input" type="checkbox" name="is_security_account" value="1" id="isSecurityAccountShop" <?php echo e(old('is_security_account', $shop->is_security_account) ? 'checked' : ''); ?>>
                  <label class="form-check-label" for="isSecurityAccountShop">
                     Is Security Account
                  </label>
                </div>
              </div>
            </div>

            <div class="d-flex gap-2">
              <a href="<?php echo e(route('shops.index')); ?>" class="btn btn-light">Cancel</a>
              <button type="submit" class="btn btn-primary">Update</button>
            </div>
          </form>
        </div>
      </div>
    </div>
  </div>

<?php $__env->stopSection(); ?>



<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\laragon\www\habibcables-ERP\resources\views\shops\edit.blade.php ENDPATH**/ ?>