1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00
invoiceninja/app/Http/Controllers/ClientPortal/CreditController.php
2021-06-17 14:28:46 +02:00

31 lines
731 B
PHP

<?php
namespace App\Http\Controllers\ClientPortal;
use App\Http\Controllers\Controller;
use App\Http\Requests\ClientPortal\Credits\ShowCreditRequest;
use App\Http\Requests\ClientPortal\Credits\ShowCreditsRequest;
use App\Models\Credit;
class CreditController extends Controller
{
public function index(ShowCreditsRequest $request)
{
return $this->render('credits.index');
}
public function show(ShowCreditRequest $request, Credit $credit)
{
set_time_limit(0);
$data = ['credit' => $credit];
if ($request->query('mode') === 'fullscreen') {
return render('credits.show-fullscreen', $data);
}
return $this->render('credits.show', $data);
}
}