
<?php $__env->startSection('content'); ?>
    <div class="row">
        <div class="col-12">
            <div class="card me-2">
                <div class="card-header pb-0">
                    <div class="d-flex justify-content-between">
                        <h5 class="mb-0">Update Supplier</h5>
                    </div>
                </div>

                <div class="card-body">
                    <form action="<?php echo e(route('supplier-update')); ?>" method="POST">
                        <?php echo csrf_field(); ?>
                        <input type="hidden" name="id" id="id" value="<?php echo e($supplier->id); ?>">
                        <div class="row">
                            <div class="col-lg-4 mb-4">
                                <label for="name" class="form-label">Supplier Name:</label>
                                <input type="text" id="name" name="name" class="form-control"
                                    value="<?php echo e(old('name', $supplier->supplier_name)); ?>" placeholder="Enter supplier name"
                                    required>
                                <?php $__errorArgs = ['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-lg-4 mb-4">
                                <label for="phone_Number" class="form-label">Phone Number:</label>
                                <input type="number" id="phone_Number" name="phone_Number" class="form-control"
                                    value="<?php echo e(old('phone_Number', $supplier->phone)); ?>" placeholder="Enter phone number"
                                    required>
                                <?php $__errorArgs = ['phone_Number'];
$__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-lg-4 mb-4">
                                <label for="email" class="form-label">Email Address:</label>
                                <input type="email" id="email" name="email" class="form-control"
                                    value="<?php echo e(old('email', $supplier->email)); ?>" placeholder="Enter email address">
                                <?php $__errorArgs = ['email'];
$__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-lg-4 mb-4">
                                <label for="address" class="form-label">Physical Address:</label>
                                <input type="text" id="address" name="address" class="form-control"
                                    value="<?php echo e(old('address', $supplier->address)); ?>" placeholder="Enter supplier address">
                                <?php $__errorArgs = ['address'];
$__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-lg-4 mb-4">
                                <label for="isActive" class="form-label">Account Status:</label>
                                <div class="d-flex">
                                    <div class="form-check form-check-inline">
                                        <input type="radio" id="isActiveYes" class="form-check-input" name="isActive"
                                            value="1" <?php echo e(old('isActive', $supplier->active_status) == 1 ? 'checked' : ''); ?>

                                            required>
                                        <label for="isActiveYes" class="form-check-label">Active</label>
                                    </div>
                                    <div class="form-check form-check-inline">
                                        <input type="radio" id="isActiveNo" class="form-check-input" name="isActive"
                                            value="0" <?php echo e(old('isActive', $supplier->active_status) == 0 ? 'checked' : ''); ?>

                                            required>
                                        <label for="isActiveNo" class="form-check-label">Inactive</label>
                                    </div>
                                </div>
                                <?php $__errorArgs = ['isActive'];
$__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="d-flex justify-content-end gap-2">
                            <button type="submit" class="btn btn-primary">Update Supplier</button>
                            <a href="<?php echo e(route('supplier-index')); ?>" class="btn btn-secondary">Cancel</a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.layoutapp', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /opt/lampp/htdocs/lara_commonbilling_new/resources/views/suppliers/edit.blade.php ENDPATH**/ ?>