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

$product = \App\Models\Product::where('name', 'like', '%Mariom%')->first();
if ($product) {
    echo "Product Name: {$product->name}\n";
    echo "price (Regular Price): " . ($product->price ?? 'NULL') . "\n";
    echo "sale_price (Discounted Price): " . ($product->sale_price ?? 'NULL') . "\n";
    echo "compare_at_price: " . ($product->compare_at_price ?? 'NULL') . "\n";
    echo "cost_price: " . ($product->cost_price ?? 'NULL') . "\n";
    echo "reseller_price (computed): " . $product->reseller_price . "\n";
} else {
    echo "Product not found.\n";
}
