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;
|
|
|
|
use Illuminate\Http\Request;
|
|
|
|
|
|
|
|
class CreditController extends Controller
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Display listing of client credits.
|
|
|
|
*
|
|
|
|
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
|
|
|
*/
|
|
|
|
public function index()
|
|
|
|
{
|
2020-04-23 00:49:23 +02:00
|
|
|
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,
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|