

<?php $__env->startSection('content'); ?>
    <div class="row">
        <div class="col-lg-12">
            <div class="card card-fullheight">
                <div class="card-header">
                    <h5 class="box-title"><?php echo e(isset($mission) ? 'Update Mission' : 'Add Mission'); ?></h5>
                </div>

                <div class="card-body">
                    <?php echo $__env->make('components.alert', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

                    <form action="<?php echo e(route('mission.update', $mission->id)); ?>" method="PUT" enctype="multipart/form-data">

                        <?php echo csrf_field(); ?>
                        
                        <div class="mb-3">
                            <label for="name" class="form-label">Title <span class="text-danger">*</span></label>
                            <input type="text" name="name" id="name" class="form-control"
                                value="<?php echo e(old('name', $mission->name ?? '')); ?>" required>
                        </div>

                        
                        <div class="mb-3">
                            <label for="desc" class="form-label">Description</label>
                            <textarea name="description" id="desc" class="form-control" rows="4"><?php echo e(old('description', $mission->description ?? '')); ?></textarea>
                        </div>
                        
                        <div class="mt-4">
                            <button type="submit" class="btn btn-success">
                                <?php echo e(isset($mission) ? 'Update' : 'Save'); ?>

                            </button>
                        </div>

                    </form>
                </div>
            </div>
        </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/commitments/missionform.blade.php ENDPATH**/ ?>