forked from AlpetGexha/Laravel-Asset-Management
-
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.
- Loading branch information
1 parent
b3d4e0e
commit 3b64c7a
Showing
9 changed files
with
26,433 additions
and
61 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
34 changes: 34 additions & 0 deletions
34
app/Filament/Resources/UserResource/Widgets/UserOverview.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,34 @@ | ||
<?php | ||
|
||
namespace App\Filament\Resources\UserResource\Widgets; | ||
|
||
use Filament\Widgets\StatsOverviewWidget as BaseWidget; | ||
use Filament\Widgets\StatsOverviewWidget\Card; | ||
|
||
class UserOverview extends BaseWidget | ||
{ | ||
public bool $readyToLoad = false; | ||
|
||
public function loadData(): void | ||
{ | ||
$this->readyToLoad = true; | ||
} | ||
|
||
protected function getCards(): array | ||
{ | ||
if (! $this->readyToLoad) { | ||
$this->skeletonLoad(); | ||
} | ||
|
||
return [ | ||
// | ||
]; | ||
} | ||
|
||
protected function skeletonLoad(): array | ||
{ | ||
return [ | ||
Card::make('Loading Data', 'loading...'), | ||
]; | ||
} | ||
} |
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
Oops, something went wrong.