@extends('header') @section('content')
@if (!session(SESSION_USER_ACCOUNTS) || count(session(SESSION_USER_ACCOUNTS)) < 5) {!! Button::success(trans('texts.add_company'))->asLinkTo(url('/invoice_now?new_company=true&sign_up=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.logged_in')}} @else {!! Button::primary(trans('texts.unlink'))->withAttributes(['onclick'=>"return showUnlink({$account->id}, {$account->user_id})"]) !!} @endif
@stop