Skip to content

Commit

Permalink
url added
Browse files Browse the repository at this point in the history
  • Loading branch information
devfaysal committed Nov 4, 2020
1 parent 6d22001 commit ed70576
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion resources/views/components/stats-item.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
@props(['count' => 100, 'label' => 'Some Label', 'icon' => 'fa fa-sitemap'])
@props(['count' => 100, 'label' => 'Some Label', 'icon' => 'fa fa-sitemap', 'href' => null])
<div class="col-12 col-sm-3 stat-col">
@if($href)
<a href="{{$href}}">
@endif
<div class="custom-box">
<div class="stat-icon">
<i class="{{ $icon }}"></i>
Expand All @@ -9,6 +12,9 @@
<div class="name"> {{ $label }} </div>
</div>
</div>
@if($href)
</a>
@endif
</div>
@once
@push('styles')
Expand Down

0 comments on commit ed70576

Please sign in to comment.