@extends('layouts.app') @section('title', 'Companies') @section('content') @can('companies.export') Export CSV @endcan @can('create', \App\Models\Company::class) New company @endcan
@if ($companies->isEmpty()) @can('create', \App\Models\Company::class) Add a company @endcan @else
@foreach ($companies as $company) @endforeach
Company IndustryContactsDeals LocationOwner
{{ $company->name }} @if ($company->website){{ $company->website }}@endif {{ $company->industry ?? '—' }} {{ $company->contacts_count }} {{ $company->opportunities_count }} {{ collect([$company->city, $company->country])->filter()->join(', ') ?: '—' }} {{ $company->owner?->name ?? '—' }}
@endif {{ $companies->links() }}
@endsection