-
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.
Merge pull request #363 from HendrikPrinsZA/feature/tinker-welled
Added support for Tinkerwell
- Loading branch information
Showing
7 changed files
with
605 additions
and
484 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,22 @@ | ||
<?php | ||
|
||
use Tinkerwell\Panels\Panel; | ||
use Tinkerwell\Panels\Table\Section; | ||
use Tinkerwell\Panels\Table\Table; | ||
|
||
class SalesPanel extends Panel | ||
{ | ||
public function __construct() | ||
{ | ||
$this->setTitle("Sales"); | ||
|
||
$sales = Table::make()->addSection( | ||
Section::make() | ||
->setTitle("Section 1") | ||
->addRow("Row 1", 0) | ||
->addRow("Row 2", 1000) | ||
); | ||
|
||
$this->setContent($sales); | ||
} | ||
} |
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 | ||
|
||
/** | ||
* @label Sample Snippet | ||
* @description Gets the count of users and the current environment | ||
*/ | ||
|
||
use App\Models\User; | ||
|
||
dump([ | ||
"users" => User::count(), | ||
"env" => app()->environment() | ||
]); |
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.