<?php $__env->startSection('title', __('trans.admin.add_new')); ?>

<?php $__env->startSection('content'); ?>
    <div class="card mb-4">
        <h5 class="card-header">
            <a href="<?php echo e(url('admin/admins')); ?>" class="btn rounded-pill btn-label-primary">
                <i class="ti me-2 ti-arrow-forward-up"></i> <?php echo e(__('trans.admin.title')); ?>

            </a>
            <?php echo $__env->yieldContent('title'); ?>
        </h5>
        <div class="card-body">
            <form action="<?php echo e(url('/admin/admins')); ?>" method="post"><?php echo csrf_field(); ?>

                <div class="row">

                    <div class="col-md-4 mb-3">
                        <label class="form-label"><?php echo e(__('trans.admin.name')); ?> <b class="text-danger">*</b></label>
                        <input type="text" class="form-control" required name="name" value="<?php echo e(old('name')); ?>"
                            placeholder="<?php echo e(__('trans.admin.name')); ?>" />
                    </div>

                    <div class="col-md-4 mb-3">
                        <label class="form-label"><?php echo e(__('trans.email')); ?> <b class="text-danger">*</b></label>
                        <input type="email" class="form-control" required name="email" value="<?php echo e(old('email')); ?>"
                            placeholder="<?php echo e(__('trans.email')); ?>" />
                    </div>


                    <div class="col-md-4 mb-3">
                        <div class="form-password-toggle">
                            <label class="form-label"><?php echo e(__('trans.password')); ?> <b class="text-danger">*</b></label>
                            <div class="input-group input-group-merge">
                                <input type="password" name="password" required class="form-control"
                                    placeholder="&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;&#xb7;" />
                                <span class="input-group-text cursor-pointer" id="basic-default-password">
                                    <i class="ti ti-eye-off"></i>
                                </span>
                            </div>
                        </div>
                    </div>

                    <div class="col-md-4 mb-3">
                        <label><?php echo e(__('trans.admin.img')); ?> <b class="text-danger">*</b></label>
                        <div class="input-group">
                            <span class="input-group-btn">
                                <a data-input="thumbnail" data-preview="holder" class="UploadFile btn btn-info text-white">
                                    <?php echo e(__('trans.choose')); ?>

                                </a>
                            </span>
                            <input id="thumbnail" dir="ltr" required class="form-control" type="text" name="img"
                                value="<?php echo e(old('img', '/admin/img/doctorito-logo.png')); ?>" readonly />
                        </div>
                        <div id="holder" style="margin-top:15px;max-height:100px;">
                            <?php if(!empty(old('img', '/admin/img/doctorito-logo.png'))): ?>
                                <img src="<?php echo e(old('img', '/admin/img/doctorito-logo.png')); ?>" style="height: 5rem;">
                            <?php endif; ?>
                        </div>
                    </div>

                    <div class="col-md-12">
                        <button class="btn btn-primary btn-create px-5"><?php echo e(__('trans.save')); ?></button>
                    </div>
                </div> 
            </form>
        </div>
    </div>

<?php $__env->stopSection(); ?>


<?php echo $__env->make('layouts.admin.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH E:\projects\doctorito\resources\views/admin/admins/create.blade.php ENDPATH**/ ?>