2019-07-22 05:54:34 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Invoice Ninja (https://invoiceninja.com)
|
|
|
|
*
|
|
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
|
|
*
|
|
|
|
* @copyright Copyright (c) 2019. Invoice Ninja LLC (https://invoiceninja.com)
|
|
|
|
*
|
|
|
|
* @license https://opensource.org/licenses/AAL
|
|
|
|
*/
|
|
|
|
|
2019-07-23 01:25:53 +02:00
|
|
|
namespace App\Http\Controllers\ClientPortal;
|
2019-07-22 05:54:34 +02:00
|
|
|
|
|
|
|
use App\Filters\InvoiceFilters;
|
2019-07-23 05:31:53 +02:00
|
|
|
use App\Http\Controllers\Controller;
|
2019-07-22 05:54:34 +02:00
|
|
|
use App\Jobs\Entity\ActionEntity;
|
|
|
|
use App\Models\Invoice;
|
|
|
|
use App\Repositories\BaseRepository;
|
|
|
|
use App\Utils\Traits\MakesHash;
|
|
|
|
use Illuminate\Http\Request;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Class InvoiceController
|
|
|
|
* @package App\Http\Controllers\ClientPortal\InvoiceController
|
|
|
|
*/
|
|
|
|
|
2019-07-23 05:31:53 +02:00
|
|
|
class InvoiceController extends Controller
|
2019-07-22 05:54:34 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
use MakesHash;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* InvoiceController constructor.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
public function __construct()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Show the list of Invoices
|
|
|
|
*
|
|
|
|
* @param \App\Filters\InvoiceFilters $filters The filters
|
|
|
|
*
|
|
|
|
* @return \Illuminate\Http\Response
|
|
|
|
*/
|
|
|
|
public function index(InvoiceFilters $filters)
|
|
|
|
{
|
|
|
|
|
2019-07-23 05:31:53 +02:00
|
|
|
// $invoices = Invoice::filter($filters);
|
2019-07-22 05:54:34 +02:00
|
|
|
|
2019-07-23 05:31:53 +02:00
|
|
|
return view('portal.default.invoices.index');
|
2019-07-22 05:54:34 +02:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Display the specified resource.
|
|
|
|
*
|
|
|
|
* @param \App\Models\Invoice $invoice The invoice
|
|
|
|
*
|
|
|
|
* @return \Illuminate\Http\Response
|
|
|
|
*/
|
|
|
|
public function show(Invoice $invoice)
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Perform bulk actions on the list view
|
|
|
|
*
|
|
|
|
* @return Collection
|
|
|
|
*/
|
|
|
|
public function bulk()
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|