@php $levelAmount = 'level'; if (Auth::User()->level() >= 2) { $levelAmount = 'levels'; } @endphp
Provider | Account | Status | Action | @if(!empty($token))@endif |
---|---|---|---|---|
Office 365 | @if(!empty($token)) {{$token->email}} @else - @endif | @if(!empty($token)) @if($hasToken) Connected @else Not connected @endif @else No account connected @endif | @if(!empty($token)) @if($hasToken) {!! HTML::link(route('calendar'), 'View Calendar', array('class' => 'btn btn-sm btn-info microsoft-graph', 'target'=>'_blank')) !!} @else {!! HTML::link(route('social.redirect', ['provider' => 'graph']), 'Connect To Office 365', array('class' => 'btn btn-sm btn-success microsoft-graph')) !!} @endif @else {!! HTML::link(route('social.redirect', ['provider' => 'graph']), 'Connect To Office 365', array('class' => 'btn btn-sm btn-success microsoft-graph')) !!} @endif | @if(!empty($token)) {!! Form::open(array('url' => 'disconnect/graph', 'class' => '', 'data-toggle' => 'tooltip', 'title' => 'Disconnect')) !!} {!! Form::hidden('_method', 'GET') !!} {!! Form::button('Disconnect', array('class' => 'btn btn-danger btn-sm','type' => 'button', 'style' =>'width: 100%;' ,'data-toggle' => 'modal', 'data-target' => '#confirmDelete', 'data-title' => 'Disconnect', 'data-message' => 'Are you sure you want to disconnect this account ?')) !!} {!! Form::close() !!} @endif |