@props(['team', 'reason', 'needed' => '']) @php $message = ''; $perm_needed = ''; switch($reason) { case'not-joined': $message .= 'You are not in this team'; $perm_needed .= $needed; break; case'not-owner': $message .= 'Only the owner can view this'; break; case'not-creator': $message .= 'Only the creator can view this'; break; case'perm-access': $message .= 'You are missing the permission needed to access this'; $perm_needed .= $needed; break; default: return; } /* !$reason ? 'Access Denied' : $reason; */ @endphp
{{__('#'.$team->id.' '.$team->name)}}
{{__('wallet')}}
{{__($message)}}
{{__($perm_needed)}}
{{__('foot')}}
{{--
{{ __($team->owner->name) }}
{{ __($message) }} {{ __($perm_needed) }}
Foot
--}}