diff --git a/resources/views/components/⚡invoice-list.blade.php b/resources/views/components/⚡invoice-list.blade.php
new file mode 100644
index 0000000..ba1a24e
--- /dev/null
+++ b/resources/views/components/⚡invoice-list.blade.php
@@ -0,0 +1,87 @@
+sortBy === $column) {
+ $this->sortDirection = $this->sortDirection === 'asc' ? 'desc' : 'asc';
+ } else {
+ $this->sortBy = $column;
+ $this->sortDirection = 'asc';
+ }
+ }
+
+ #[Computed]
+ public function invoices()
+ {
+ return Invoice::orderBy($this->sortBy, $this->sortDirection)->paginate(10);
+ }
+
+};
+?>
+
+
+
+
+
+
+ Invoice Number
+
+
+
+ Client
+
+
+
+ Status
+
+
+
+ Invoice Date
+
+
+
+ Sent
+
+
+ Due Date
+
+
+ Total
+
+
+
+
+ @foreach($this->invoices as $invoice)
+
+ {{ $invoice->number }}
+ {{ $invoice->client->abbreviation }}
+ {{ $invoice->status->value }}
+ {{ $invoice->invoice_date }}
+ {{ $invoice->sent_at }}
+ {{ $invoice->due_date }}
+ {{ formatMoney($invoice->total) }}
+
+
+ @endforeach
+
+
+
diff --git a/resources/views/invoices/index.blade.php b/resources/views/invoices/index.blade.php
new file mode 100644
index 0000000..e35926c
--- /dev/null
+++ b/resources/views/invoices/index.blade.php
@@ -0,0 +1,8 @@
+
+
+{{--
--}}
+{{-- --}}
+{{--
--}}
+
+
+
diff --git a/resources/views/layouts/app/sidebar.blade.php b/resources/views/layouts/app/sidebar.blade.php
index ddc9445..94fe7ee 100644
--- a/resources/views/layouts/app/sidebar.blade.php
+++ b/resources/views/layouts/app/sidebar.blade.php
@@ -28,6 +28,10 @@
{{ __('Products') }}
+
+ {{ __('Invoices') }}
+
+
diff --git a/routes/web.php b/routes/web.php
index 5bcde0e..3b47f26 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -12,6 +12,7 @@ Route::middleware(['auth', 'verified'])->group(function () {
Route::view('clients', 'clients.index')->name('clients');
Route::view('contacts', 'contacts.index')->name('contacts');
Route::view('products', 'products.index')->name('products');
+ Route::view('invoices', 'invoices.index')->name('invoices');
});
// Route::view('dashboard', 'dashboard')