<?php

require __DIR__ . '/vendor/autoload.php';

$app = require_once __DIR__ . '/bootstrap/app.php';
$app->make('Illuminate\Contracts\Console\Kernel')->bootstrap();

$pkg = App\Models\ImmigoProPackage::find(1);

if ($pkg) {
    echo json_encode([
        'id' => $pkg->id,
        'name' => $pkg->name_en,
        'base_price' => $pkg->base_price,
        'payment_plans' => $pkg->payment_plans,
    ], JSON_PRETTY_PRINT);
} else {
    echo "Package not found\n";
}
