Build the stuff for payments.

This commit is contained in:
2025-01-16 15:34:10 +01:00
parent f120559e3b
commit dcedbc71c4
17 changed files with 670 additions and 31 deletions

View File

@@ -0,0 +1,35 @@
<?php
namespace App\Http\Controllers;
use App\Models\Payment;
use Illuminate\Contracts\View\View;
use Illuminate\Http\Request;
class PaymentController extends Controller
{
/**
* Display a listing of the resource.
*/
public function index(): View
{
return view('payment.index');
}
/**
* Show the form for creating a new resource.
*/
public function create(): View
{
return view('payment.create');
}
/**
* Show the form for editing the specified resource.
*/
public function edit(Payment $payment): View
{
return view('payment.edit', ['payment' => $payment->load('invoice')]);
}
}