Name Start Date Venue Capacity Auditions @if (Auth::user()->hasTeamPermission(Auth::user()->currentTeam, 'read')) View Actors @endif {{-- Only show the download icon if the user has the 'create' permission --}} @if (Auth::user()->hasTeamPermission(Auth::user()->currentTeam, 'create')) CSV @endif @foreach($myvenuedates as $venuedate) {{ $venuedate->name }} {{ date('j M Y' , strtotime($venuedate->start_date)) }} @if ($venuedate->venue) {{ $venuedate->venue->name }} @endif {{ $venuedate->capacity }} {{ count($venuedate->auditions) }} @if (Auth::user()->hasTeamPermission(Auth::user()->currentTeam, 'read')) @endif {{-- Only show the download icon if the user has the 'create' permission --}} @if (Auth::user()->hasTeamPermission(Auth::user()->currentTeam, 'create')) @endif @endforeach