

<?php $__env->startSection('content'); ?>
    <div class="card">
        <div class="card-header">
            <h5><?php echo e(isset($founder) ? 'Edit Founder' : 'Add Founder'); ?></h5>
        </div>
        <div class="card-body">
            <form action="<?php echo e(isset($founder) ? route('founders.update', $founder->id) : route('founders.store')); ?>"
                method="POST" enctype="multipart/form-data">
                <?php echo csrf_field(); ?>
                <?php if(isset($founder)): ?>
                    <?php echo method_field('PUT'); ?>
                <?php endif; ?>

                <div class="mb-3">
                    <label>Name</label>
                    <input type="text" name="name" class="form-control"
                        value="<?php echo e(old('name', $founder->name ?? '')); ?>" required>
                </div>

                <div class="mb-3">
                    <label>Position</label>
                    <input type="text" name="position" class="form-control"
                        value="<?php echo e(old('position', $founder->position ?? '')); ?>" required>
                </div>

                <div class="mb-3">
                    <label>About</label>
                    <textarea name="about" class="form-control" rows="4"><?php echo e(old('about', $founder->about ?? '')); ?></textarea>
                </div>

                <div class="mb-3">
                    <label>Image</label>
                    <input type="file" name="image" accept="image/*" class="form-control">
                    <?php if(isset($founder) && $founder->image): ?>
                        <div class="mt-2">
                            <img src="<?php echo e(asset('storage/' . $founder->image)); ?>" alt="Founder Image" width="120">
                        </div>
                    <?php endif; ?>
                </div>

                <button class="btn btn-success mt-3"><?php echo e(isset($founder) ? 'Update' : 'Save'); ?></button>
                <a href="<?php echo e(route('founders.index')); ?>" class="btn btn-secondary mt-3">Cancel</a>
            </form>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.masterAdmin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\TGP-hospital-site\resources\views/admin/founders/form.blade.php ENDPATH**/ ?>