mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
ab8b05dd56
* Install livewire/livewire * Table improvements - Cleanup of InvoiceController - Added Livewire package - New Livewire component (InvoicesTable) - New WithSorting trait - Removed rendering invoices from index.blade.php - Removed Yaryabox/Datatables references in InvoiceController * Refactor: Recurring invoices * payments table & sorting improvements * payment methods table * quotes table * credits table * Add turbolinks
29 lines
641 B
PHP
29 lines
641 B
PHP
<?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()
|
|
{
|
|
return $this->render('credits.index');
|
|
}
|
|
|
|
public function show(ShowCreditRequest $request, Credit $credit)
|
|
{
|
|
return $this->render('credits.show', [
|
|
'credit' => $credit,
|
|
]);
|
|
}
|
|
}
|