<?php $__env->startSection('title', 'Parfum'); ?>
<?php $__env->startSection('active9', 'active'); ?>
<?php $__env->startSection('menu1', 'open'); ?>
<?php $__env->startSection('content'); ?>

    <style>
        table td {
            font-size: 14px;
        }
    </style>

    <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">Data Parfum</h4>
                    <button type="button" class="btn btn-primary me-2" data-bs-toggle="modal"
                        data-bs-target="#staticBackdrop"><i class="bx bx-plus bx-sm"></i> Add</button>
                </div>
                <div class="table-responsive">
                    <table class="table table-hover" id="Mytable">
                        <thead class="table-primary text-center">
                            <tr>
                                <th scope="col">Laundry</th>
                                <th scope="col">Nama Parfum</th>
                                <th scope="col">Wangi</th>
                                <th scope="col">Foto</th>
                                <th scope="col">Action</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                    <td><?php echo e($data->laundry->nama_laundry); ?></td>
                                    <td><?php echo e($data->nama_parfum); ?></td>
                                    <td><?php echo e($data->wangi); ?></td>
                                    <td><img src="<?php echo e(asset('storage/img/' . $data->foto)); ?>" alt=""
                                            class="w-px-100 h-auto rounded-circle" /></td>
                                    <td><a href="<?php echo e(route('parfum.edit', $data->id)); ?>"
                                            class="btn btn-sm btn-label-secondary"> <i class="bx bx-edit-alt"></i></a>
                                    </td>

                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tbody>
                    </table>
                </div>

            </div>
            <!-- Modal -->
            <div class="modal fade" id="staticBackdrop" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1"
                aria-labelledby="staticBackdropLabel" aria-hidden="true">
                <div class="modal-dialog modal-sm">
                    <div class="modal-content ">
                        <div class="modal-header">
                            <h5 class="modal-title" id="staticBackdropLabel">Tambah Data</h5>
                            <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('parfum.store')); ?>" method="POST" enctype="multipart/form-data">
                                <?php echo csrf_field(); ?>
                                <div class="row">
                                    <!-- Kolom Kiri -->
                                    <div class="col-md-12">
                                        <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="">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->id); ?> -
                                                        <?php echo e($Laundry->nama_laundry); ?></option>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </select>
                                        </div>
                                        <div class="mb-3">
                                            <label for="nama_parfum" class="form-label">Nama Parfum</label>
                                            <input type="text" class="form-control" id="nama_parfum" name="nama_parfum"
                                                placeholder="Masukkan Nama Parfum" required>
                                        </div>
                                        <div class="mb-3">
                                            <label for="nama_parfum" class="form-label">Wangi</label>
                                            <input type="text" class="form-control" id="wangi" name="wangi"
                                                placeholder="Masukkan Keterangan Wangi" required>
                                        </div>

                                        <!-- Logo Brand -->
                                        <div class="mb-3">
                                            <label for="logo_brand" class="form-label">Foto</label>
                                            <input type="file" class="form-control" id="foto" name="foto"
                                                required>
                                        </div>


                                    </div>
                                </div>

                        </div>

                        <div class="modal-footer">
                            
                            <button type="submit" class="btn btn-primary">Simpan</button>
                        </div>
                        </form>
                    </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/index.blade.php ENDPATH**/ ?>