mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-14 07:02:34 +01:00
31 lines
731 B
PHP
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);
|
|
}
|
|
}
|