1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-18 00:53:10 +01:00
invoiceninja/app/Http/Controllers/ClientPortal/CreditController.php

30 lines
633 B
PHP
Raw Normal View History

2020-03-23 18:10:42 +01:00
<?php
namespace App\Http\Controllers\ClientPortal;
use App\Http\Controllers\Controller;
use App\Http\Requests\ClientPortal\ShowCreditRequest;
use App\Models\Credit;
2020-10-28 11:10:49 +01:00
use Illuminate\Contracts\View\Factory;
use Illuminate\View\View;
2020-03-23 18:10:42 +01:00
class CreditController extends Controller
{
/**
* Display listing of client credits.
*
2020-10-28 11:10:49 +01:00
* @return Factory|View
2020-03-23 18:10:42 +01:00
*/
public function index()
{
return $this->render('credits.index');
2020-03-23 18:10:42 +01:00
}
public function show(ShowCreditRequest $request, Credit $credit)
{
return $this->render('credits.show', [
'credit' => $credit,
]);
}
}