Skip to content

Commit

Permalink
Merge pull request #364 from yungifez/dev
Browse files Browse the repository at this point in the history
Fix #363
  • Loading branch information
yungifez authored Nov 23, 2023
2 parents 9b6893a + bf58dfe commit 844436f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions resources/views/dashboard.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</a>
@endif

@can('read notice')
@can('read notice')
@livewire('list-notices-table')
@endcan

Expand All @@ -39,4 +39,4 @@
@livewire('list-account-applications-table')
@endcan

@endsection
@endsection
12 changes: 7 additions & 5 deletions resources/views/livewire/dashboard-data-cards.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@hasanyrole('admin|super-admin')
<div>
@hasanyrole('admin|super-admin')
<div class="card">
<div class="card-body">
@can('read school')
Expand All @@ -7,15 +8,15 @@
<x-info-box :title="$schools" text="Schools" icon="fas fa-school text-dark" colour="bg-red-600" text-colour="text-white" :url="route('schools.index')" url-text="View schools"/>
</div>
@endcan

@can('manage school settings')
<h4 class="font-bold text-center text-2xl my-4">School data</h4>
@endcan

<div class="grid md:grid-cols-2 lg:grid-cols-3 gap-4">
@can('read class group')
<x-info-box title="{{$classGroups}}" text="Class groups" colour="bg-orange-600" text-colour="text-white" url="{{route('class-groups.index')}}" url-text="View class groups"/>
@endcan
@endcan
@can('read class')
<x-info-box title="{{$classes}}" text="Classes" url="{{route('classes.index')}}" url-text="View classes" colour="bg-green-500" text-colour="text-white"/>
@endcan
Expand All @@ -34,4 +35,5 @@
</div>
</div>
</div>
@endhasanyrole
@endhasanyrole
</div>

0 comments on commit 844436f

Please sign in to comment.