<form method="GET" action="<?php echo e($filterAction); ?>" class="date-filter-card catalogue-sort-filter">
    <div class="date-filter-heading">
        <span class="date-filter-icon" aria-hidden="true">⇅</span>
        <div><small>Control catalogue order</small><h3>Sort & Date Filter</h3></div>
    </div>

    <?php if(isset($showContentType)): ?>
        <label for="content_type">Content type</label>
        <select id="content_type" name="content_type">
            <option value="all" <?php if($contentType === 'all'): echo 'selected'; endif; ?>>Movies & TV Shows</option>
            <option value="movie" <?php if($contentType === 'movie'): echo 'selected'; endif; ?>>Movies only</option>
            <option value="show" <?php if($contentType === 'show'): echo 'selected'; endif; ?>>TV Shows only</option>
        </select>
    <?php endif; ?>

    <label>Sorting</label>
    <div class="catalogue-sort-options">
        <label class="sort-radio"><input type="radio" name="sort" value="trending" <?php if($sort === 'trending'): echo 'checked'; endif; ?>><span>Trending</span></label>
        <label class="sort-radio"><input type="radio" name="sort" value="latest_released" <?php if($sort === 'latest_released'): echo 'checked'; endif; ?>><span>Latest Released</span></label>
        <label class="sort-radio"><input type="radio" name="sort" value="latest_imported" <?php if($sort === 'latest_imported'): echo 'checked'; endif; ?>><span>Latest Imported</span></label>
        <label class="sort-radio"><input type="radio" name="sort" value="most_viewed" <?php if($sort === 'most_viewed'): echo 'checked'; endif; ?>><span>Most Viewed</span></label>
    </div>

    <label for="from_date">From date</label>
    <input id="from_date" type="date" name="from_date" value="<?php echo e($fromDate); ?>" max="<?php echo e(now()->addYears(10)->toDateString()); ?>">

    <label for="to_date">To date</label>
    <input id="to_date" type="date" name="to_date" value="<?php echo e($toDate); ?>" max="<?php echo e(now()->addYears(10)->toDateString()); ?>">

    <?php $__errorArgs = ['to_date'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?><p class="filter-error"><?php echo e($message); ?></p><?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>

    <button class="date-filter-submit" type="submit">Apply Filter</button>
    <a class="date-filter-reset" href="<?php echo e($filterAction); ?>">Reset</a>
</form>
<?php /**PATH /home/megashopltd/moviedocks.com/resources/views/front/partials/catalogue-filter.blade.php ENDPATH**/ ?>