-
-
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
37 changed files
with
316 additions
and
67 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<turbo-frame id="widget-{{ $key }}"> | ||
<div {{ $attrs }}> | ||
<div class="app-widget__column"> | ||
<h2 class="app-widget__title">{{ $name }}</h2> | ||
<p class="app-widget__data">{{ __('Loading') }}...</p> | ||
</div> | ||
</div> | ||
</turbo-frame> |
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,13 +1,25 @@ | ||
<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" /> | ||
<turbo-frame id="widget-{{ $key }}"> | ||
<div {{ $attrs }}> | ||
<div class="app-widget__column"> | ||
<h2 class="app-widget__title"> | ||
{{ $name }} | ||
<div class="form-group"> | ||
<label class="form-label sr-only" for="widget-{{ $key }}-interval">{{ __('Interval') }}</label> | ||
<select class="form-control form-control--sm" id="widget-{{ $key }}-interval"> | ||
<option value="this-week">This Week</option> | ||
<option value="last-week">Last Week</option> | ||
<option value="last-month">Last Month</option> | ||
</select> | ||
</div> | ||
</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> | ||
<div class="app-widget__chart"> | ||
<div id="chart01"></div> | ||
</div> | ||
</div> | ||
</turbo-frame> |
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,37 @@ | ||
<turbo-frame id="widget-{{ $key }}"> | ||
<div {{ $attrs }}> | ||
@if(! is_null($icon)) | ||
<div class="app-widget__icon"> | ||
<x-root::icon :name="$icon" /> | ||
</div> | ||
@endif | ||
<div class="app-widget__column"> | ||
<h2 class="app-widget__title"> | ||
{{ $name }} | ||
<div class="form-group"> | ||
<label class="form-label sr-only" for="widget-{{ $key }}-interval">{{ __('Interval') }}</label> | ||
<select class="form-control form-control--sm" id="widget-{{ $key }}-interval"> | ||
<option value="this-week">This Week</option> | ||
<option value="last-week">Last Week</option> | ||
<option value="last-month">Last Month</option> | ||
</select> | ||
</div> | ||
</h2> | ||
<p class="app-widget__data">{{ $data['current'] }}</p> | ||
@if($data['trend'] < 0) | ||
<div class="trending trending--down app-widget__trending"> | ||
<span class="trending__caption">{{ $data['trend'] }}%</span> | ||
<x-root::icon name="trending-down" class="trending__icon" /> | ||
</div> | ||
@elseif($data['trend'] > 0) | ||
<div class="trending trending--up app-widget__trending"> | ||
<span class="trending__caption">+{{ $data['trend'] }}%</span> | ||
<x-root::icon name="trending-up" class="trending__icon" /> | ||
</div> | ||
@endif | ||
</div> | ||
<div class="app-widget__chart"> | ||
<div id="chart01"></div> | ||
</div> | ||
</div> | ||
</turbo-frame> |
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 +1,3 @@ | ||
<div class="app-widget"></div> | ||
<turbo-frame id="widget-{{ $key }}"> | ||
<div {{ $attrs }}></div> | ||
</turbo-frame> |
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
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
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
Oops, something went wrong.