<?php
// pages/components/coupon_modal.php
// Thin wrapper delegating to generic CRUD controller

use Components\Resources\Controllers\CrudController;
use Components\Models\Coupon;

ob_start();

echo CrudController::handle([
    'modelClass'   => Coupon::class,
    'selfRoute'    => 'coupon_modal',
    'event_prefix' => 'coupon',
]);

$__html = ob_get_clean();
echo $__html;
