@extends('layouts.app') @section('content')

Welcome back, {{ auth()->user()->name }}

You have access to {{ $totalBusinesses }} {{ Str::plural('business', $totalBusinesses) }}. Select one to manage.

@if(auth()->user()->isOwner() || auth()->user()->isAdmin()) @endif
@forelse($businesses as $business)
{{ strtoupper(substr($business->name, 0, 2)) }}

{{ $business->name }}

{{ $business->currency_symbol }} {{ $business->currency }} @if($business->country) {{ $business->country }} @endif
@if(auth()->user()->isOwner() || auth()->user()->isAdmin()) @endif

{{ $business->active_staff ?? 0 }}

Staff

{{ $business->assets_count ?? 0 }}

Assets

{{ $business->expenses_count ?? 0 }}

Expenses

@if($business->monthly_payroll > 0)
Monthly Payroll {{ $business->currency_symbol }}{{ number_format($business->monthly_payroll) }}
@endif @if($business->total_income > 0)
Total Income {{ $business->currency_symbol }}{{ number_format($business->total_income) }}
@endif @if($business->total_expenses > 0)
Total Expenses {{ $business->currency_symbol }}{{ number_format($business->total_expenses) }}
@endif
@if($business->transfers_count > 0) {{ $business->transfers_count }} transfers @endif @if($business->invoices_count > 0) {{ $business->invoices_count }} invoices @endif
Open
@empty

No businesses yet

Get started by creating your first business.

@if(auth()->user()->isOwner() || auth()->user()->isAdmin()) @endif
@endforelse
@endsection