2024-06-24 07:44:42 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Invoice Ninja (https://invoiceninja.com).
|
|
|
|
*
|
|
|
|
* @link https://github.com/invoiceninja/invoiceninja source repository
|
|
|
|
*
|
|
|
|
* @copyright Copyright (c) 2024. Invoice Ninja LLC (https://invoiceninja.com)
|
|
|
|
*
|
|
|
|
* @license https://www.elastic.co/licensing/elastic-license
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace App\Livewire;
|
|
|
|
|
|
|
|
use Livewire\Component;
|
|
|
|
|
|
|
|
class InvoiceSummary extends Component
|
|
|
|
{
|
|
|
|
public $context;
|
|
|
|
|
|
|
|
public $invoice;
|
|
|
|
|
|
|
|
public function mount()
|
|
|
|
{
|
2024-07-02 09:09:46 +02:00
|
|
|
//@TODO for a single invoice - show all details, for multi-invoices, only show the summaries
|
|
|
|
$this->invoice = $this->context['invitation']->invoice;
|
2024-06-24 07:44:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public function render()
|
|
|
|
{
|
|
|
|
return render('components.livewire.invoice-summary',[
|
|
|
|
'invoice' => $this->invoice
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|