<div class="plf">
    <style>
        .plf { max-width: 560px; margin: 0 auto; font-family: Arial, Helvetica, sans-serif; color: #111; }
        .plf h2 { font-size: 20px; margin: 0 0 16px; }
        .plf .card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 24px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
        .plf .field { margin-bottom: 18px; }
        .plf label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
        .plf input, .plf select {
            width: 100%; box-sizing: border-box; padding: 10px 12px;
            border: 1px solid #d1d5db; border-radius: 10px; font-size: 14px; background: #fff;
        }
        .plf input:focus, .plf select:focus { outline: none; border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.15); }
        .plf input:disabled { background: #f3f4f6; color: #6b7280; }
        .plf .row { display: flex; gap: 12px; align-items: flex-end; }
        .plf .row > div:first-child { flex: 1; }
        .plf .suffix { padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 10px; background: #f3f4f6; font-size: 14px; min-width: 56px; text-align: center; }
        .plf .err { color: #dc2626; font-size: 12px; margin-top: 4px; }
        .plf .hint { font-size: 12px; color: #6b7280; margin-top: 4px; }
        .plf .preview { margin-top: 10px; }
        .plf .preview img { max-height: 160px; border-radius: 10px; border: 1px solid #e5e7eb; }
        .plf button.simpan {
            width: 100%; margin-top: 8px; padding: 12px; border: 0; border-radius: 10px;
            background: #16a34a; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
        }
        .plf button.simpan:hover { background: #15803d; }
        .plf .uploading { font-size: 12px; color: #16a34a; margin-top: 6px; }
    </style>
    <center>
    <h2>Input Penerimaan Limbah B3</h2>
    </center>
    <div class="card">
        <form wire:submit="save">
            
            <div class="field">
                <label>Tanggal</label>
                <input type="date" wire:model="tanggal" disabled>
            </div>

            
            <div class="field">
                <label>Nama PIC</label>
                <input type="text" wire:model="pic">
            </div>

            
            <div class="field">
                <label>Jenis Limbah B3</label>
                <select wire:model.live="limbah_id">
                    <option value="">-- Pilih jenis limbah --</option>
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $daftarLimbah; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $limbah): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoop($loop->index); ?><?php endif; ?>
                        <option value="<?php echo e($limbah->id); ?>"><?php echo e($limbah->nama); ?></option>
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
                </select>
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__errorArgs = ['limbah_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <div class="err"><?php echo e($message); ?></div> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
            </div>

            
            <div class="field">
                <label>Kode Limbah</label>
                <input type="text" wire:model="kode" placeholder="otomatis terisi" disabled>
            </div>

            
            <div class="field">
                <label>Sumber Limbah B3</label>
                <select wire:model="sumber">
                    <option value="">-- Pilih sumber --</option>
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $this->sumberOptions(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $opsi): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoop($loop->index); ?><?php endif; ?>
                        <option value="<?php echo e($opsi); ?>"><?php echo e($opsi); ?></option>
                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
                </select>
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__errorArgs = ['sumber'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <div class="err"><?php echo e($message); ?></div> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
            </div>

            
            <div class="field">
                <label>Jumlah Limbah B3</label>
                <div class="row">
                    <div>
                        <input type="number" step="any" min="0" wire:model="jumlah" placeholder="0">
                    </div>
                    <div class="suffix"><?php echo e($satuan ?: '—'); ?></div>
                </div>
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__errorArgs = ['jumlah'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <div class="err"><?php echo e($message); ?></div> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
            </div>

            
            <div class="field">
                <label>Foto Bukti</label>
                <input type="file" wire:model="foto" accept="image/*" capture="environment">
                <div class="hint">Di HP, opsi kamera akan muncul otomatis.</div>

                <div wire:loading wire:target="foto" class="uploading">Mengunggah foto...</div>

                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($foto): ?>
                    <div class="preview">
                        <img src="<?php echo e($foto->temporaryUrl()); ?>" alt="Preview">
                    </div>
                <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__errorArgs = ['foto'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <div class="err"><?php echo e($message); ?></div> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
            </div>

            <button type="submit" class="simpan">
                <span wire:loading.remove wire:target="save">Simpan Penerimaan</span>
                <span wire:loading wire:target="save">Menyimpan...</span>
            </button>
        </form>
    </div>
</div><?php /**PATH C:\xampp\htdocs\gudang-limbahb3\resources\views/livewire/penerimaan-limbah-form.blade.php ENDPATH**/ ?>