@extends('header') @section('content')
@if (!session(SESSION_USER_ACCOUNTS) || count(session(SESSION_USER_ACCOUNTS)) < 5) {!! Button::success(trans('texts.add_company'))->asLinkTo(url('/login?new_company=true')) !!} @endif

 

@foreach (Session::get(SESSION_USER_ACCOUNTS) as $account) @endforeach
@if (isset($account->logo_url)) {!! HTML::image($account->logo_url.'?no_cache='.time(), 'Logo', ['width' => 100]) !!} @endif

{{ $account->account_name }}
{{ $account->user_name }} @if ($account->user_id == Auth::user()->id) | {{ trans('texts.current_user')}} @endif

{!! Button::primary(trans('texts.unlink'))->withAttributes(['onclick'=>"return showUnlink({$account->id}, {$account->user_id})"]) !!}
@stop