<div class="grid md:grid-cols-2 gap-5">
    <div>
        <label class="text-sm font-medium">Institution name</label>
        <input name="name" value="<?php echo e(old('name', $partnerInstitution->name ?? '')); ?>" class="w-full mt-1 rounded border-gray-300" required>
        <?php $__errorArgs = ['name'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <p class="text-xs text-red-600 mt-1"><?php echo e($message); ?></p> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
    </div>

    <div>
        <label class="text-sm font-medium">Sort order</label>
        <input type="number" min="0" name="sort_order" value="<?php echo e(old('sort_order', $partnerInstitution->sort_order ?? 0)); ?>" class="w-full mt-1 rounded border-gray-300">
        <?php $__errorArgs = ['sort_order'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <p class="text-xs text-red-600 mt-1"><?php echo e($message); ?></p> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>

        <label class="inline-flex items-center gap-2 mt-4 text-sm">
            <input type="checkbox" name="is_active" value="1" <?php echo e(old('is_active', $partnerInstitution->is_active ?? true) ? 'checked' : ''); ?>>
            Active
        </label>
    </div>

    <div class="md:col-span-2">
        <label class="text-sm font-medium">Institution logo</label>
        <input type="file" name="logo" accept="image/*" class="w-full mt-1 rounded border-gray-300" <?php echo e(empty($partnerInstitution?->id) ? 'required' : ''); ?>>
        <?php $__errorArgs = ['logo'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?> <p class="text-xs text-red-600 mt-1"><?php echo e($message); ?></p> <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>
        <?php if(!empty($partnerInstitution?->logo_url)): ?>
            <img src="<?php echo e($partnerInstitution->logo_url); ?>" class="mt-3 h-24 w-40 rounded border border-gray-200 bg-white object-contain p-3" alt="<?php echo e($partnerInstitution->name); ?>">
        <?php endif; ?>
        <p class="text-xs text-gray-500 mt-2">Recommended: transparent PNG or clean logo image.</p>
    </div>
</div>
<?php /**PATH /home/gpsmigration/public_html/gpsmigration.com/resources/views/admin/partner-institutions/_form.blade.php ENDPATH**/ ?>