<?php
require 'vendor/autoload.php';
$app = require_once 'bootstrap/app.php';
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
$kernel->bootstrap();

echo "Product count: " . \App\Models\Product::count() . "\n";
echo "Category count: " . \App\Models\Category::count() . "\n";
echo "Visible Category count: " . \App\Models\Category::where('is_visible', true)->count() . "\n";
echo "Active Shipping Method count: " . \App\Models\ShippingMethod::where('is_active', true)->count() . "\n";
foreach (\App\Models\Product::take(5)->get() as $p) {
    echo "Product: {$p->name} | Price: {$p->price} | Reseller Price: {$p->reseller_price} | Visible: {$p->is_visible}\n";
}
