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

31 lines
731 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;
2021-06-17 14:28:46 +02:00
use App\Http\Requests\ClientPortal\Credits\ShowCreditRequest;
use App\Http\Requests\ClientPortal\Credits\ShowCreditsRequest;
2020-03-23 18:10:42 +01:00
use App\Models\Credit;
class CreditController extends Controller
{
2021-06-17 14:28:46 +02:00
public function index(ShowCreditsRequest $request)
2020-03-23 18:10:42 +01:00
{
return $this->render('credits.index');
2020-03-23 18:10:42 +01:00
}
public function show(ShowCreditRequest $request, Credit $credit)
{
2021-05-18 12:03:06 +02:00
set_time_limit(0);
$data = ['credit' => $credit];
if ($request->query('mode') === 'fullscreen') {
return render('credits.show-fullscreen', $data);
}
return $this->render('credits.show', $data);
2020-03-23 18:10:42 +01:00
}
}