@extends('layouts.app') @section('content')
@if(Gate::allows('manage-users') && Gate::allows('manage-items')) @elseif(Gate::allows('manage-users')) @else @endif

{{ $title }}

@if($homeworks->count())
@php $uniqueHomeworks = $homeworks->unique('ex_name'); // or 'ex_path' if you prefer @endphp @foreach($uniqueHomeworks as $homework) @endforeach
{{ $title }} Name Thumbnail Action
{{ $homework->ex_name }} @if(!empty($homework->ex_path)) Thumbnail @else N/A @endif Download
@else

No {{ $title }} available.

@endif
@include('layouts.footers.auth.footer') @endsection