@extends('layouts.app') @section('title', $customer->name) @section('content')
{{ strtoupper(substr($customer->name,0,1)) }}

{{ $customer->name }}

{{ $customer->type==='company'?'🏱 Företag':'đŸ‘€ Privatperson' }} @if($customer->org_number)Org: {{ $customer->org_number }}@endif #{{ $customer->customer_number }}
+ Ny faktura Redigera
{{ $customer->invoices->count() }}
Fakturor totalt
{{ number_format($totalRevenue,0,',', ' ') }} kr
Total intÀkt (betald)
{{ number_format($outstanding,0,',', ' ') }} kr
UtestÄende
Fakturahistorik + Ny faktura
@forelse($customer->invoices as $inv) @empty @endforelse
FakturaDatumFörfallBeloppStatus
{{ $inv->invoice_number }} {{ $inv->invoice_date->format('d.m.Y') }} {{ $inv->due_date->format('d.m.Y') }} {{ number_format($inv->total,0,',', ' ') }} {{ $inv->currency }} {{ $inv->status_label }}
Inga fakturor Ànnu
Kontaktuppgifter
@foreach([ ['E-post',$customer->email,'mailto:'.$customer->email], ['Telefon',$customer->phone,'tel:'.$customer->phone], ['Adress',$customer->billing_address.', '.$customer->billing_postal_code.' '.$customer->billing_city, null], ['Betalningsvillkor',$customer->payment_terms.' dagar', null], ['Valuta',$customer->currency, null], ['Bankgiro',$customer->bankgiro_number, null], ['Referens',$customer->reference_person, null], ] as [$lbl,$val,$link]) @if($val && trim($val,', '))
{{ $lbl }} @if($link) {{ $val }} @else {{ $val }} @endif
@endif @endforeach
AI Kreditriskanalys
Klicka för att analysera kundens betalningshistorik med AI.
@if($customer->notes)
Anteckningar
{{ $customer->notes }}
@endif @if($customer->external_ids)
Externa kopplingar
@foreach($customer->external_ids as $system=>$id)
{{ ucfirst($system) }} {{ $id }}
@endforeach
@endif
@push('scripts') @endpush @endsection