Update source into github

This commit is contained in:
pbao9
2025-07-24 16:18:27 +07:00
parent 41419358dd
commit 69851ac7bc
2642 changed files with 284095 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
<?php
namespace App\Http\Livewire;
use App\Models\Invoice as CustomerInvoice;
use Livewire\Component;
use Livewire\WithPagination;
class Invoice extends Component
{
use WithPagination;
public $status = "full";
public function render()
{
return view('livewire.invoice', [
'invoice' => CustomerInvoice::where(function ($query) {
switch ($this->status) {
case "0":
case "1":
case "2":
$query->where('status', $this->status);
break;
}
})
->where('customer_id', customer()->id)
->latest()
->paginate(10)
]);
}
}