1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 15:13:29 +01:00
invoiceninja/app/Livewire/InvoiceSummary.php

36 lines
780 B
PHP
Raw Normal View History

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()
{
//@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
]);
}
}