added cashier subscription, subscription plans

This commit is contained in:
Gitea
2025-05-03 06:13:19 +05:30
parent e04539f1b7
commit 6e2a750c4e
23 changed files with 1087 additions and 21 deletions

View File

@@ -0,0 +1,25 @@
<?php
namespace App\Livewire\Dashboard;
use Livewire\Component;
class Pricing extends Component
{
public $plans;
public function mount(): void
{
$this->plans = config('app.plans');
}
public function choosePlan($pricing_id): void
{
$this->redirect(route('checkout', $pricing_id));
}
public function render()
{
return view('livewire.dashboard.pricing');
}
}