-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Showing
10 changed files
with
103 additions
and
84 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
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,13 @@ | ||
<div class="app-widget app-widget--primary"> | ||
<div class="app-widget__column"> | ||
<h2 class="app-widget__title">{{ $name }}</h2> | ||
<p class="app-widget__data">65</p> | ||
<div class="trending trending--up app-widget__trending"> | ||
<span class="trending__caption">+12%</span> | ||
<x-root::icon name="trending-up" class="trending__icon" /> | ||
</div> | ||
</div> | ||
<div class="app-widget__chart"> | ||
<div id="chart01"></div> | ||
</div> | ||
</div> |
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 |
---|---|---|
@@ -1,22 +1 @@ | ||
<div class="app-widget app-widget--summary"> | ||
<div class="app-widget__icon"> | ||
<svg aria-hidden='true' fill='none' focusable='false' height='24' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' stroke='currentColor' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg' class='icon'> | ||
<path d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'></path> | ||
<line x1='3' y1='6' x2='21' y2='6'></line> | ||
<path d='M16 10a4 4 0 0 1-8 0'></path> | ||
</svg> | ||
</div> | ||
<div class="app-widget__column"> | ||
<h2 class="app-widget__title">Total Products</h2> | ||
<div class="app-widget__data-row"> | ||
<p class="app-widget__data">341</p> | ||
<div class="trending trending--up widget__trending"> | ||
<span class="trending__caption">+12%</span> | ||
<svg aria-hidden='true' fill='none' focusable='false' height='24' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' stroke='currentColor' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg' class='trending__icon'> | ||
<polyline points='23 6 13.5 15.5 8.5 10.5 1 18'></polyline> | ||
<polyline points='17 6 23 6 23 12'></polyline> | ||
</svg> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="app-widget"></div> |
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
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
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,21 @@ | ||
<?php | ||
|
||
namespace Cone\Root\Widgets; | ||
|
||
use Illuminate\Http\Request; | ||
|
||
abstract class Trend extends Metric | ||
{ | ||
/** | ||
* The Blade template. | ||
*/ | ||
protected string $template = 'root::widgets.trend'; | ||
|
||
/** | ||
* Calculate the metric data. | ||
*/ | ||
public function calculate(Request $request): array | ||
{ | ||
return []; | ||
} | ||
} |