@extends('sendportal::layouts.app') @section('heading') {{ __('Workspaces') }} @endsection @section('content')
{{ __('Current Workspaces') }}
@foreach ($workspaces as $workspace) @endforeach
{{ __('Name') }}
{{ __('Owner') }}  
{{ $workspace->name }}
@if (auth()->user()->id === $workspace->owner_id) You @else {{ $workspace->owner->name }} @endif @if (auth()->user()->ownsWorkspace($workspace)) {{ __('Edit') }} @endif
@if (count($invitations))
{{ __('Invitations') }}
@foreach ($invitations as $invitation) @endforeach
{{ __('Workspace') }} {{ __('Invited') }} {{ __('Expires') }}  
{{ $invitation->workspace->name }} {{ $invitation->created_at->format('Y-m-d') }} {{ $invitation->expires_at->format('Y-m-d') }} {{-- Accept --}}
@csrf isExpired()) disabled title="{{ __('This invitation has expired.') }}" @endif >
{{-- Reject --}}
@csrf
@endif
{{ __('Add Workspace') }}
@csrf
@endsection