@extends('layouts.app', ['title' => 'Firmendaten']) @section('content') {{-- Edit Modal (nur für MGT) --}} @if (Auth::user()->get_employee->is_mgt) @endif {{-- Page --}}
{{-- Header --}}

Firmendaten

Stammdaten & Kontaktinformationen
@if(Auth::user()->get_employee->is_mgt) @endif
@if(session('msg'))
{{ session('msg') }}
@endif {{-- Firmen-Header-Card --}}
@if($company->logo) Logo @else @endif
{{ $company->name ?? '—' }}
@if($company->app_name)
{{ $company->app_name }}
@endif
@if($company->webseite || $company->email)
@if($company->webseite)
{{ $company->webseite }}
@endif @if($company->email)
{{ $company->email }}
@endif
@endif
{{-- Info Cards: 3 Spalten --}}
{{-- Adresse --}}
Adresse
Straße
{{ trim(($company->str ?? '') . ' ' . ($company->hn ?? '')) ?: '—' }}
PLZ / Ort
{{ trim(($company->plz ?? '') . ' ' . ($company->ort ?? '')) ?: '—' }}
{{-- Kontakt --}}
Kontakt
@if($company->tel)
{{ $company->tel }}
@endif @if($company->fax)
{{ $company->fax }}
@endif @if($company->email)
{{ $company->email }}
@endif @if($company->webseite)
{{ $company->webseite }}
@endif @if(!$company->tel && !$company->fax && !$company->email && !$company->webseite) @endif
{{-- Steuer --}}
Steuer
Steuernummer
{{ $company->steuer_nr ?? '—' }}
USt-IdNr.
{{ $company->ust_id ?? '—' }}
{{-- Bankkonten --}}
Bankkonten
@if(Auth::user()->get_employee->is_mgt) @endif
@if($bankAccounts->isEmpty())

Noch keine Bankkonten hinterlegt.

@else
@foreach($bankAccounts as $ba)
{{ $ba->bank_name ?? '—' }} @if($ba->is_default) Standard @elseif(Auth::user()->get_employee->is_mgt)
@csrf
@endif
{{ $ba->account_holder ?? '' }}
{{ $ba->iban ?? '—' }}
{{ $ba->bic ?? '' }}
@if(Auth::user()->get_employee->is_mgt)
@csrf
@endif
@endforeach
@endif
{{-- Modal: Bankkonto hinzufügen --}} @if(Auth::user()->get_employee->is_mgt) {{-- Modal: Bankkonto bearbeiten --}} @endif @endsection