-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor locale middleware * simplify build * refactor colors * refactor intervention domains * refactor icons * refactor home page * refactor routes * refactor ngos * refactor services * refactor pages * refactor header * wip * wip * wip * wip
- Loading branch information
Showing
97 changed files
with
1,327 additions
and
1,313 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Concerns; | ||
|
||
use App\Models\InterventionDomain; | ||
use Illuminate\Database\Eloquent\Relations\BelongsToMany; | ||
|
||
trait BelongsToInterventionDomains | ||
{ | ||
public function interventionDomains(): BelongsToMany | ||
{ | ||
return $this->belongsToMany(InterventionDomain::class); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
app/Filament/Resources/InterventionDomainResource/Pages/CreateInterventionDomain.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Filament\Resources\InterventionDomainResource\Pages; | ||
|
||
use App\Filament\Base\CreateRecord; | ||
use App\Filament\Resources\InterventionDomainResource; | ||
|
||
class CreateInterventionDomain extends CreateRecord | ||
{ | ||
protected static string $resource = InterventionDomainResource::class; | ||
} |
13 changes: 13 additions & 0 deletions
13
app/Filament/Resources/InterventionDomainResource/Pages/EditInterventionDomain.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Filament\Resources\InterventionDomainResource\Pages; | ||
|
||
use App\Filament\Base\EditRecord; | ||
use App\Filament\Resources\InterventionDomainResource; | ||
|
||
class EditInterventionDomain extends EditRecord | ||
{ | ||
protected static string $resource = InterventionDomainResource::class; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
app/Filament/Resources/InterventionDomainsResource/Pages/CreateInterventionDomains.php
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
app/Filament/Resources/InterventionDomainsResource/Pages/EditInterventionDomains.php
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Http\Controllers; | ||
|
||
use App\Models\InterventionDomain; | ||
use App\Models\Ngo; | ||
use App\Models\Service; | ||
use Illuminate\View\View; | ||
|
||
class HomeController extends Controller | ||
{ | ||
public function __invoke(): View | ||
{ | ||
return view('home', [ | ||
'services_count' => Service::count(), | ||
'ngos_count' => Ngo::count(), | ||
'beneficiaries_count' => Ngo::sum('number_of_beneficiaries'), | ||
'domains' => InterventionDomain::all(), | ||
]); | ||
} | ||
} |
Oops, something went wrong.