24 lines
579 B
PHP
Executable File
24 lines
579 B
PHP
Executable File
<?php
|
|
|
|
namespace Modules\Pricing\Http\Controllers;
|
|
|
|
use Illuminate\Contracts\Support\Renderable;
|
|
use Illuminate\Routing\Controller;
|
|
use Modules\Platform\app\Models\PlatformPrice;
|
|
|
|
class PricingController extends Controller
|
|
{
|
|
/**
|
|
* Display the platform pricing cards from the shared Platform price model.
|
|
*/
|
|
public function index(): Renderable
|
|
{
|
|
return view('platform::prices.public', [
|
|
'prices' => PlatformPrice::query()
|
|
->where('is_active', true)
|
|
->ordered()
|
|
->get(),
|
|
]);
|
|
}
|
|
}
|