@extends('layouts.app')
@section('title', $account->name)
@section('content')
<h1 class="h4">{{ $account->name }}</h1>
<p>{{ __('messages.main_account') }}: {{ $account->mainAccount?->name }}</p>
<p>{{ __('messages.outstanding') }}: {{ money($outstanding) }}</p>
<ul>@foreach($account->customers as $c)<li><a href="{{ route('customers.show',$c) }}">{{ $c->name }}</a></li>@endforeach</ul>
<ul>@foreach($account->lines as $l)<li><a href="{{ route('lines.show',$l) }}">{{ $l->phone_number }}</a></li>@endforeach</ul>
@endsection
