Skip to content

Commit

Permalink
Merge pull request #395 from liberu-accounting/sweep/Add-Filament-Res…
Browse files Browse the repository at this point in the history
…ource-Pages-for-Various-Accounting-Entities

Add Filament Resource Pages for Various Accounting Entities
  • Loading branch information
curtisdelicata authored Dec 26, 2024
2 parents 17ce449 + 563a220 commit cabc6f2
Show file tree
Hide file tree
Showing 18 changed files with 330 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@


<?php

namespace App\Filament\App\Resources\PurchaseOrderResource\Pages;

use App\Filament\App\Resources\PurchaseOrderResource;
use Filament\Resources\Pages\CreateRecord;

class CreatePurchaseOrder extends CreateRecord
{
protected static string $resource = PurchaseOrderResource::class;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@


<?php

namespace App\Filament\App\Resources\PurchaseOrderResource\Pages;

use App\Filament\App\Resources\PurchaseOrderResource;
use Filament\Actions;
use Filament\Resources\Pages\EditRecord;

class EditPurchaseOrder extends EditRecord
{
protected static string $resource = PurchaseOrderResource::class;

protected function getHeaderActions(): array
{
return [
Actions\DeleteAction::make(),
];
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@


<?php

namespace App\Filament\App\Resources\PurchaseOrderResource\Pages;

use App\Filament\App\Resources\PurchaseOrderResource;
use Filament\Actions;
use Filament\Resources\Pages\ListRecords;

class ListPurchaseOrders extends ListRecords
{
protected static string $resource = PurchaseOrderResource::class;

protected function getHeaderActions(): array
{
return [
Actions\CreateAction::make(),
];
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@


<?php

namespace App\Filament\App\Resources\ReminderSettingResource\Pages;

use App\Filament\App\Resources\ReminderSettingResource;
use Filament\Resources\Pages\CreateRecord;

class CreateReminderSetting extends CreateRecord
{
protected static string $resource = ReminderSettingResource::class;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@


<?php

namespace App\Filament\App\Resources\ReminderSettingResource\Pages;

use App\Filament\App\Resources\ReminderSettingResource;
use Filament\Actions;
use Filament\Resources\Pages\EditRecord;

class EditReminderSetting extends EditRecord
{
protected static string $resource = ReminderSettingResource::class;

protected function getHeaderActions(): array
{
return [
Actions\DeleteAction::make(),
];
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@


<?php

namespace App\Filament\App\Resources\ReminderSettingResource\Pages;

use App\Filament\App\Resources\ReminderSettingResource;
use Filament\Actions;
use Filament\Resources\Pages\ListRecords;

class ListReminderSettings extends ListRecords
{
protected static string $resource = ReminderSettingResource::class;

protected function getHeaderActions(): array
{
return [
Actions\CreateAction::make(),
];
}
}
13 changes: 13 additions & 0 deletions app/Filament/App/Resources/TaxFormResource/Pages/CreateTaxForm.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@


<?php

namespace App\Filament\App\Resources\TaxFormResource\Pages;

use App\Filament\App\Resources\TaxFormResource;
use Filament\Resources\Pages\CreateRecord;

class CreateTaxForm extends CreateRecord
{
protected static string $resource = TaxFormResource::class;
}
21 changes: 21 additions & 0 deletions app/Filament/App/Resources/TaxFormResource/Pages/EditTaxForm.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@


<?php

namespace App\Filament\App\Resources\TaxFormResource\Pages;

use App\Filament\App\Resources\TaxFormResource;
use Filament\Actions;
use Filament\Resources\Pages\EditRecord;

class EditTaxForm extends EditRecord
{
protected static string $resource = TaxFormResource::class;

protected function getHeaderActions(): array
{
return [
Actions\DeleteAction::make(),
];
}
}
21 changes: 21 additions & 0 deletions app/Filament/App/Resources/TaxFormResource/Pages/ListTaxForms.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@


<?php

namespace App\Filament\App\Resources\TaxFormResource\Pages;

use App\Filament\App\Resources\TaxFormResource;
use Filament\Actions;
use Filament\Resources\Pages\ListRecords;

class ListTaxForms extends ListRecords
{
protected static string $resource = TaxFormResource::class;

protected function getHeaderActions(): array
{
return [
Actions\CreateAction::make(),
];
}
}
13 changes: 13 additions & 0 deletions app/Filament/App/Resources/TaxRateResource/Pages/CreateTaxRate.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@


<?php

namespace App\Filament\App\Resources\TaxRateResource\Pages;

use App\Filament\App\Resources\TaxRateResource;
use Filament\Resources\Pages\CreateRecord;

class CreateTaxRate extends CreateRecord
{
protected static string $resource = TaxRateResource::class;
}
21 changes: 21 additions & 0 deletions app/Filament/App/Resources/TaxRateResource/Pages/EditTaxRate.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@


<?php

namespace App\Filament\App\Resources\TaxRateResource\Pages;

use App\Filament\App\Resources\TaxRateResource;
use Filament\Actions;
use Filament\Resources\Pages\EditRecord;

class EditTaxRate extends EditRecord
{
protected static string $resource = TaxRateResource::class;

protected function getHeaderActions(): array
{
return [
Actions\DeleteAction::make(),
];
}
}
21 changes: 21 additions & 0 deletions app/Filament/App/Resources/TaxRateResource/Pages/ListTaxRates.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@


<?php

namespace App\Filament\App\Resources\TaxRateResource\Pages;

use App\Filament\App\Resources\TaxRateResource;
use Filament\Actions;
use Filament\Resources\Pages\ListRecords;

class ListTaxRates extends ListRecords
{
protected static string $resource = TaxRateResource::class;

protected function getHeaderActions(): array
{
return [
Actions\CreateAction::make(),
];
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@


<?php

namespace App\Filament\App\Resources\TimeEntryResource\Pages;

use App\Filament\App\Resources\TimeEntryResource;
use Filament\Resources\Pages\CreateRecord;

class CreateTimeEntry extends CreateRecord
{
protected static string $resource = TimeEntryResource::class;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@


<?php

namespace App\Filament\App\Resources\TimeEntryResource\Pages;

use App\Filament\App\Resources\TimeEntryResource;
use Filament\Actions;
use Filament\Resources\Pages\EditRecord;

class EditTimeEntry extends EditRecord
{
protected static string $resource = TimeEntryResource::class;

protected function getHeaderActions(): array
{
return [
Actions\DeleteAction::make(),
];
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@


<?php

namespace App\Filament\App\Resources\TimeEntryResource\Pages;

use App\Filament\App\Resources\TimeEntryResource;
use Filament\Actions;
use Filament\Resources\Pages\ListRecords;

class ListTimeEntries extends ListRecords
{
protected static string $resource = TimeEntryResource::class;

protected function getHeaderActions(): array
{
return [
Actions\CreateAction::make(),
];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,16 @@ class CreateTransaction extends CreateRecord
{
protected static string $resource = TransactionResource::class;
}


<?php

namespace App\Filament\App\Resources\TransactionResource\Pages;

use App\Filament\App\Resources\TransactionResource;
use Filament\Resources\Pages\CreateRecord;

class CreateTransaction extends CreateRecord
{
protected static string $resource = TransactionResource::class;
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,24 @@ protected function getHeaderActions(): array
];
}
}


<?php

namespace App\Filament\App\Resources\TransactionResource\Pages;

use App\Filament\App\Resources\TransactionResource;
use Filament\Actions;
use Filament\Resources\Pages\EditRecord;

class EditTransaction extends EditRecord
{
protected static string $resource = TransactionResource::class;

protected function getHeaderActions(): array
{
return [
Actions\DeleteAction::make(),
];
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,24 @@ protected function getHeaderActions(): array
];
}
}


<?php

namespace App\Filament\App\Resources\TransactionResource\Pages;

use App\Filament\App\Resources\TransactionResource;
use Filament\Actions;
use Filament\Resources\Pages\ListRecords;

class ListTransactions extends ListRecords
{
protected static string $resource = TransactionResource::class;

protected function getHeaderActions(): array
{
return [
Actions\CreateAction::make(),
];
}
}

0 comments on commit cabc6f2

Please sign in to comment.