<?php $__env->startSection('title', 'Import ' . ucfirst($kind)); ?>
<?php $__env->startSection('heading', 'Import ' . ucfirst($kind)); ?>

<?php $__env->startSection('content'); ?>
    <form
        class="panel import-box"
        method="post"
        action="<?php echo e(route('admin.' . $kind . 's.import')); ?>"
    >
        <?php echo csrf_field(); ?>

        <h2>Import from TMDB or IMDb</h2>

        <p>
            Paste a full TMDB <?php echo e($kind === 'movie' ? 'movie' : 'TV-show'); ?> link, a TMDB numeric ID,
            or an IMDb ID. The title, metadata, official trailer reference, poster and backdrop will be imported.
        </p>

        <label for="reference">TMDB Link / TMDB ID / IMDb ID</label>
        <input
            id="reference"
            name="reference"
            value="<?php echo e(old('reference')); ?>"
            placeholder="<?php echo e($kind === 'movie' ? 'https://www.themoviedb.org/movie/1475803-governor' : 'https://www.themoviedb.org/tv/12345-show-name'); ?>"
            required
            autocomplete="off"
        >

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

        <div class="import-examples">
            <strong>Accepted examples:</strong>
            <code>https://www.themoviedb.org/<?php echo e($kind === 'movie' ? 'movie' : 'tv'); ?>/123456-title</code>
            <code>123456</code>
            <code>tt0111161</code>
        </div>

        <button class="primary" type="submit">
            <i class="fa-solid fa-cloud-arrow-down"></i>
            Fetch &amp; Import
        </button>
    </form>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layout', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/megashopltd/moviedocks.com/resources/views/admin/import.blade.php ENDPATH**/ ?>