<?php $__env->startSection('title', 'Parfum'); ?>
<?php $__env->startSection('active9', 'active'); ?>
<?php $__env->startSection('content'); ?>
    <div class="content-wrapper">
        <div class="container-xxl flex-grow-1 container-p-y">
            <!-- Invoice List Table -->
            <div class="card">
                <div class="header-menu d-flex justify-content-between align-items-center">
                    <h4 class="card-header">Edit Data Parfum</h4>
                    <form action="<?php echo e(route('parfum.update', $data->id)); ?>" method="POST" enctype="multipart/form-data">
                        <?php echo csrf_field(); ?>
                        <button type="submit" class="btn btn-primary me-2" data-bs-toggle="modal"
                            data-bs-target="#staticBackdrop"><i class="bx bx-save bx-sm"></i> Simpan</button>
                </div>

                <div class="card-body">
                    <div class="row">
                        <!-- Kolom Kiri -->
                        <div class="col-md-6">
                            <?php if(Auth::user()->role == 'superadmin'): ?>
                                <div class="mb-3">
                                    <label for="users_id" class="form-label">Pilih Laundry</label>

                                    <select id="pelanggan" name="laundry_id" class="form-select form-control-sm" required>
                                        <option value="<?php echo e($data->laundry_id); ?>"> <?php echo e($data->laundry->nama_laundry); ?> -
                                            <?php echo e($data->laundry->email); ?></option>
                                        <option value="">Pilih Laundry</option>
                                        <?php $__currentLoopData = $laundry; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $laundry): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <option value="<?php echo e($laundry->id); ?>"><?php echo e($laundry->nama_laundry); ?> -
                                                <?php echo e($laundry->email); ?></option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                </div>
                            <?php endif; ?>
                            <!-- Nama Brand -->
                            <div class="mb-3">
                                <label for="nama_brand" class="form-label">Nama Parfum</label>
                                <input type="text" class="form-control" id="nama_parfum" name="nama_parfum"
                                    placeholder="Masukkan Nama Parfum" value="<?php echo e($data->nama_parfum); ?>" required>
                            </div>
                            <div class="mb-3">
                                <label for="wangi" class="form-label">Wangi</label>
                                <input type="text" class="form-control" id="wangi" name="wangi"
                                    placeholder="Masukkan wangi" value="<?php echo e($data->wangi); ?>" required>
                            </div>

                            <!-- Logo Brand -->
                            <div class="mb-3">
                                <label for="foto_parfum" class="form-label">Foto Parfum</label>
                                <input type="file" class="form-control" id="foto" name="foto">
                                <span class="text-danger">*Isi jika mengganti foto</span>
                            </div>
                            <div class="nb-3">
                                <img src="<?php echo e(asset('storage/img/' . $data->foto)); ?>" alt="" width="100px"
                                    height="100px">
                            </div>
                        </div>
                    </div>
                    </form>
                </div>
            </div>
        </div>
    </div>

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

<?php echo $__env->make('component.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp_2\htdocs\Laundry\resources\views/parfum/edit.blade.php ENDPATH**/ ?>