
<?php $__env->startSection('title'); ?>
    Admin | create 
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
<div class="container-fluid">
    <?php echo $__env->make('back.parts.message', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <div class="row justify-content-center">
        <div class="col-lg-8">
            <div class="card mb-4">
                <div class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
                    <div class="col-md-6">
                        <h6 class="m-0 font-weight-bold text-primary">Add Client</h6>
                    </div>
                    <div class="col-md-6">
                        <a href="<?php echo e(route('client.index')); ?>" class="btn btn-primary float-right">View All</a>
                    </div>
                </div>
                <div class="card-body">
                    <form role="form" method="post" action="<?php echo e(route('client.store')); ?>" enctype="multipart/form-data">
                        <?php echo csrf_field(); ?>
                        <div class="form-group row">
                            <div class="col-md-12">
                                <label class="" for="name">Name <span class="text-danger">*</span></label>
                                <input class=" form-control" name="name" placeholder="Name" type="text"
                                       maxlength="200" required>
                                <span class="text-danger"><?php echo e($errors->has('name') ? $errors->first('name'):''); ?></span>
                            </div>
                        </div>
                        <div class="form-group row">
                            <div class="col-md-12">
                                <label class="" for="web_address">Web Address <span class="text-danger"></span></label>
                                <textarea class="form-control" rows="5" name="web_address" placeholder="Web Address"></textarea>
                                <span class="text-danger"><?php echo e($errors->has('web_address') ? $errors->first('web_address'):''); ?></span>
                            </div>
                        </div>
                        <div class="form-group">
                         <label class="mb-1" for="photo">Logo <span class="text-danger">*</span></label>
                         <div class="custom-file">
                            <input type="file" class="custom-file-input profile-img-input" id="photo" name="logo" required>
                            <label class="custom-file-label" for="customFile">Choose file</label>
                         </div>
                         <span class="text-danger"><?php echo e($errors->has('logo') ? $errors->first('logo'):''); ?></span>
                         <div class="pt-1" id="profileLabel" for="photo">
                            <img class="profileImgShow" src="<?php echo e(asset('defaults/default3.png')); ?>">
                         </div>
                        </div>
                        
                        <div class="form-group">
                            <label for="possition">Position <span
                                        class="text-danger"></span></label>
                                <input class="form-control" type="number" min="1" name="position" required="required" placeholder="Enter position (lower number has high priority)"
                                       id="position">
                                <span class="text-danger"><?php echo e($errors->has('position') ? $errors->first('position'):''); ?></span>
                        </div>
                        <button type="submit" class="float-right btn btn-primary">Create</button>
                    </form>
                </div>
            </div>
        </div> <!--col-5-->
    </div>
</div>
<?php $__env->stopSection(); ?>


<?php echo $__env->make('layouts.backend', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/HoteliersBD2/resources/views/back/client/create.blade.php ENDPATH**/ ?>