<?php $__env->startSection('content'); ?>
    <div class="col-md-12">
        <div class="row">
            <h1 class="content-heading"><?php echo e($title); ?></h1>
            <?php echo Form::open(); ?>

            <div class="form-group">
                <?php echo Form::label('title', t('Title')); ?>*
                <?php echo Form::input('text','title',null, ['required', 'class' => 'form-control', 'placeholder' => t('Title')]); ?>

            </div>
            <div class="form-group">
                <?php echo Form::label('description', t('Description')); ?>*
                <?php echo Form::textarea('description',null, ['id' => 'editor', 'class' => 'form-control', 'placeholder' => t('Description')]); ?>

            </div>
            <div class="form-group">
                <?php echo Form::label('apply_elsewhere', t('Apply from somewhere else')); ?>

                <?php echo Form::checkbox('apply_elsewhere', 1, null, ['id' => 'apply_elsewhere']); ?>

            </div>
            <div class="form-group apply_elsewhere">
                <?php echo Form::label('apply_to', t('How to apply')); ?>*
                <?php echo Form::textarea('apply_to',null, ['rows' => 3, 'id' => 'editor', 'class' => 'form-control', 'placeholder' => t('How and where to apply, email address or link')]); ?>

            </div>
            <div class="form-group">
                <?php echo Form::label('is_remote', t('Is Remote Job')); ?>

                <?php echo Form::checkbox('is_remote', 1, null, ['id' => 'is_remote']); ?>

            </div>
            <div class="hide-if-remote">
                <div class="form-group">
                    <?php echo Form::label('location', t('Location')); ?>

                    <?php echo Form::select('location',[],[],['class' => 'location', 'placeholder' => t('City, Sate, Country')]); ?>

                    <?php echo Form::input('text','location_id',null,['class' => 'place_id hidden', 'placeholder' => t('City, Sate, Country')]); ?>

                </div>
            </div>

            <div class="form-group">
                <label for="category"><?php echo e(t('Category')); ?>*</label>
                <select class="form-control select-box" name="category" required>
                    <option disabled selected></option>
                    <?php foreach(siteCategories() as $category): ?>
                        <option value="<?php echo e($category->id); ?>"><?php echo e($category->name); ?></option>
                    <?php endforeach; ?>
                </select>
            </div>

            <div class="form-group">
                <label for="job_type"><?php echo e(t('Job Type')); ?>*</label>
                <select class="form-control select-box" name="job_type" required>
                    <option disabled selected></option>
                    <?php foreach(sitePostTypes() as $type): ?>
                        <option value="<?php echo e($type->id); ?>"><?php echo e($type->name); ?></option>
                    <?php endforeach; ?>
                </select>
            </div>

            <div class="form-group">
                <?php echo Form::label('tags', 'Tags'); ?> ( <?php echo e(t('Optional')); ?>)
                <select class="form-control tagging" multiple="multiple" name="tags[]">
                </select>
            </div>
            <?php echo $__env->make('posts.partials.stripe', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
            <?php echo Form::close(); ?>

        </div>
   </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('master.index', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>