@extends('layouts.app') @section('content')
@foreach($teams as $team) @endforeach
Name Status
{{$team->name}} @if(auth()->user()->isOwnerOfTeam($team)) Owner @else Member @endif @if(is_null(auth()->user()->currentTeam) || auth()->user()->currentTeam->getKey() !== $team->getKey()) Switch @else Current team @endif Members @if(auth()->user()->isOwnerOfTeam($team)) Edit
{!! csrf_field() !!}
@endif
@endsection