<?php $__env->startSection('title', 'Add Country'); ?>
<?php $__env->startSection('page-title', 'Add Country'); ?>

<?php $__env->startPush('styles'); ?>
<script src="https://cdn.tiny.cloud/1/<?php echo e(config('services.tinymce.api_key', 'no-api-key')); ?>/tinymce/6/tinymce.min.js" referrerpolicy="origin"></script>
<?php $__env->stopPush(); ?>

<?php $__env->startSection('content'); ?>


<nav class="flex items-center gap-2 text-sm text-gray-500 mb-6">
    <a href="<?php echo e(route('admin.countries.index')); ?>" class="hover:text-blue-600">Countries</a>
    <span>/</span>
    <span class="text-gray-800 font-medium">Add New</span>
</nav>

<?php echo $__env->make('admin.countries._form', [
    'country' => new \App\Models\Country(),
    'action'  => route('admin.countries.store'),
    'method'  => 'POST',
], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>

<?php $__env->stopSection(); ?>

<?php $__env->startPush('scripts'); ?>
<?php echo $__env->make('admin.countries._tinymce', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<?php echo $__env->make('admin.countries._slug_script', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
<script>
function previewImage(input, imgId, wrapId) {
    const wrap = document.getElementById(wrapId);
    const img  = document.getElementById(imgId);
    if (input.files && input.files[0]) {
        const reader = new FileReader();
        reader.onload = e => { img.src = e.target.result; if(wrap) wrap.classList.remove('hidden'); };
        reader.readAsDataURL(input.files[0]);
    }
}
</script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make('admin.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\gps-migration\resources\views\admin\countries\create.blade.php ENDPATH**/ ?>