<?php $__env->startSection('title', 'Edit Perusahaan - FIN-ANALYSIS PRO'); ?>
<?php $__env->startSection('content'); ?>
<div class="max-w-lg mx-auto">
    <div style="margin-bottom:2rem">
        <a href="<?php echo e(route('companies.show', urlencode($name))); ?>"
           style="color:#1A56DB;text-decoration:none;font-size:.875rem;display:inline-flex;align-items:center;gap:4px;margin-bottom:.75rem">
            <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="15 18 9 12 15 6"/></svg>
            Kembali ke Detail
        </a>
        <h1 class="page-title">Edit Perusahaan</h1>
        <p class="page-subtitle">Mengubah nama akan memperbarui semua riwayat analisis terkait</p>
    </div>

    <div class="card">
        <form action="<?php echo e(route('companies.update', urlencode($name))); ?>" method="POST">
            <?php echo csrf_field(); ?> <?php echo method_field('PUT'); ?>
            <div class="form-group">
                <label class="form-label">Nama Perusahaan <span class="required">*</span></label>
                <input type="text" name="company_name" class="form-control <?php echo e($errors->has('company_name')?'is-invalid':''); ?>"
                       value="<?php echo e(old('company_name', $name)); ?>" required>
                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__errorArgs = ['company_name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><div class="invalid-feedback"><?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 style="margin-top:.5rem;padding:.75rem;background:#FEF3C7;border-radius:8px;font-size:.8125rem;color:#92400E">
                ⚠️ Perubahan nama akan diterapkan ke <strong><?php echo e($analyses->count()); ?> analisis</strong> yang terkait.
            </div>
            <div style="display:flex;gap:.75rem;margin-top:1.5rem">
                <a href="<?php echo e(route('companies.show', urlencode($name))); ?>" class="btn btn-secondary" style="flex:1;justify-content:center">Batal</a>
                <button type="submit" class="btn btn-primary" style="flex:1">Simpan Perubahan</button>
            </div>
        </form>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/roky/projects/V1/resources/views/companies/edit.blade.php ENDPATH**/ ?>