@extends('layouts.app') @section('title', $company->name) @section('content') @can('update', $company) Edit @endcan @can('delete', $company)
@csrf @method('DELETE')
@endcan
Website@if ($company->website){{ $company->website }}@else — @endif
Email{{ $company->email ?? '—' }}
Phone{{ $company->phone ?? '—' }}
Employees{{ $company->employee_count ? number_format($company->employee_count) : '—' }}
Revenue{{ $company->annual_revenue ? money((float) $company->annual_revenue, (string) ($company->currency ?: auth()->user()->tenant->currency)) : '—' }}
Owner{{ $company->owner?->name ?? '—' }}
@if ($company->description)

{{ $company->description }}

@endif
@forelse ($contacts as $contact)
{{ $contact->full_name }} @if ($contact->job_title){{ $contact->job_title }}@endif {{ $contact->email }}
@empty

No contacts linked to this company yet.

@endforelse
@forelse ($deals as $deal)
{{ $deal->name }} {{ money((float) $deal->amount, (string) $deal->currency) }} {{ $deal->stage?->name }}
@empty

No deals yet.

@endforelse
@include('partials.timeline', ['timeline' => $timeline])
@endsection