<?php $__env->startSection('content'); ?>
<div class="container mt-4">
    <h3><?php echo e(isset($visitType) ? __('visit_types.edit_type') : __('visit_types.add_new_type')); ?></h3>

    <form method="POST" action="<?php echo e(isset($visitType) ? route('visit_types.update', $visitType->id) : route('visit_types.store')); ?>">
        <?php echo csrf_field(); ?>
        <?php if(isset($visitType)): ?> <?php echo method_field('PUT'); ?> <?php endif; ?>

        <div class="mb-3">
            <label for="name" class="form-label"><?php echo e(__('lang.name')); ?></label>
            <input type="text" class="form-control" id="name" name="name" value="<?php echo e(old('name', $visitType->name ?? '')); ?>" required>
        </div>

        <button type="submit" class="btn btn-success"><?php echo e(isset($visitType) ? __('lang.update') : __('lang.add')); ?></button>
        <a href="<?php echo e(route('visit_types.index')); ?>" class="btn btn-secondary"><?php echo e(__('lang.back')); ?></a>
    </form>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.default', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Users\zakti\Documents\waiting-room-app\resources\views/visit_types/create.blade.php ENDPATH**/ ?>