<?php if($canReview): ?>
    <form action="<?php echo e(route('public.reviews.create')); ?>" method="post" class="review-form mt-4 pt-3">
        <?php echo csrf_field(); ?>
        <input type="hidden" name="reviewable_type" value="<?php echo e(get_class($reviewable)); ?>">
        <input type="hidden" name="reviewable_id" value="<?php echo e($reviewable->getKey()); ?>">
        <h6 class="fs-17 fw-semibold mb-2"><?php echo e(__('Reviews for :reviewable', ['reviewable' => $reviewable->name])); ?></h6>
        <?php if(auth()->guard('account')->guest()): ?>
            <p class="text-danger my-3">
                <?php echo BaseHelper::clean(__('Please <a href=":route">login</a> to write review!', ['route' => route('public.account.login')])); ?>

            </p>
        <?php endif; ?>
        <div class="row">
            <div class="col-lg-12">
                <div class="mb-3">
                    <select name="star" class="jquery-bar-rating" data-read-only="false">
                        <option value="1">1</option>
                        <option value="2">2</option>
                        <option value="3">3</option>
                        <option value="4">4</option>
                        <option value="5" selected>5</option>
                    </select>
                </div>
            </div>

            <?php if($reviewable instanceof \Botble\JobBoard\Models\Account): ?>
                <div class="mb-3">
                    <?php if($account->companies->count() === 1): ?>
                        <label for="company_id" class="form-label fw-bold"><?php echo e(__('Review as :company', ['company' => $account->companies->value('name')])); ?></label>
                        <input type="hidden" name="company_id" value="<?php echo e($account->companies->value('id')); ?>">
                    <?php else: ?>
                        <label for="company_id" class="form-label fw-bold"><?php echo e(__('Review as company:')); ?></label>
                        <select name="company_id" id="company_id" class="form-select">
                            <?php $__currentLoopData = $account->companies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $company): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <option value="<?php echo e($company->id); ?>"><?php echo e($company->name); ?></option>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </select>
                    <?php endif; ?>
                </div>
            <?php endif; ?>

            <div class="col-lg-12">
                <div class="mb-3">
                    <label for="review" class="form-label"><?php echo e(__('Review')); ?></label>
                    <textarea class="form-control" id="review" name="review" <?php if(! $canReview): echo 'disabled'; endif; ?> placeholder="<?php echo e(__('Add your review')); ?>"></textarea>
                </div>
            </div>
        </div>
        <div class="text-end">
            <button type="submit" class="btn btn-primary btn-hover" <?php if(! $canReview): echo 'disabled'; endif; ?>>
                <?php echo e(__('Submit Review')); ?>

            </button>
        </div>
    </form>
<?php endif; ?>
<?php /**PATH C:\xampp\htdocs\tngamechanger\platform\themes/jobbox/views/job-board/partials/review-form.blade.php ENDPATH**/ ?>