{{-- resources/views/connect/companies/index.blade.php --}} @extends('connect.layouts.main') @section('title', 'Suppliers Directory - CLEDA Connect') @section('description', 'Find verified suppliers and manufacturers from the Caribbean and Latin America. Browse profiles, compare ratings, and connect directly with quality businesses.') @push('styles') @endpush @section('content')
Clear Filters
@if(isset($companies)) Showing {{ $companies->count() }} of {{ $companies->total() }} suppliers @else Showing sample suppliers @endif
@if(isset($companies) && $companies->count() > 0)
@foreach($companies as $company)
@if($company->logo) @else
{{ substr($company->name, 0, 2) }}
@endif

{{ $company->name }}

πŸ“ {{ $company->city }}, {{ $company->country }}
@if($company->verification_status === 'gold') πŸ† Gold Verified @elseif($company->verification_status === 'verified') βœ“ Verified @endif @if($company->membership_plan === 'enterprise') Enterprise @elseif($company->membership_plan === 'premium') Premium @endif
πŸ“¦ {{ $company->products_count ?? rand(15, 150) }} Products
🏒 {{ $company->years_in_business ?? rand(3, 25) }} Years in Business
πŸ‘₯ {{ $company->employees_count ?? rand(10, 500) }} Employees
@if($company->average_rating)
@for($i = 1; $i <= 5; $i++) @if($i <= floor($company->average_rating)) ⭐ @else β˜† @endif @endfor
{{ number_format($company->average_rating, 1) }} ({{ $company->reviews_count ?? 0 }} reviews)
@endif
{{ Str::limit($company->description ?? 'Quality supplier specializing in various products and services for the Caribbean and Latin American markets.', 180) }}
@if($company->specialties)
@foreach(explode(',', $company->specialties) as $specialty) {{ trim($specialty) }} @endforeach
@endif
@endforeach
@if(method_exists($companies, 'links')) {{ $companies->appends(request()->query())->links() }} @endif @else {{-- Sample data when no companies are loaded --}}
@for($i = 1; $i <= 8; $i++) @php $sampleCompanies = [ ['name' => 'Caribbean Manufacturing Ltd.', 'country' => 'Jamaica', 'city' => 'Kingston', 'industry' => 'Manufacturing'], ['name' => 'Tropical Foods Export Co.', 'country' => 'Costa Rica', 'city' => 'San JosΓ©', 'industry' => 'Food & Beverage'], ['name' => 'Island Tech Solutions', 'country' => 'Barbados', 'city' => 'Bridgetown', 'industry' => 'Technology'], ['name' => 'Dominican Textiles SA', 'country' => 'Dominican Republic', 'city' => 'Santo Domingo', 'industry' => 'Textiles'], ['name' => 'Pacific Construction Group', 'country' => 'Panama', 'city' => 'Panama City', 'industry' => 'Construction'], ['name' => 'Caribe Agriculture Corp.', 'country' => 'Trinidad & Tobago', 'city' => 'Port of Spain', 'industry' => 'Agriculture'], ['name' => 'Andean Mining Enterprises', 'country' => 'Colombia', 'city' => 'BogotΓ‘', 'industry' => 'Mining'], ['name' => 'Maya Tourism Services', 'country' => 'Mexico', 'city' => 'CancΓΊn', 'industry' => 'Tourism'], ]; $company = (object) $sampleCompanies[($i-1) % count($sampleCompanies)]; $company->id = $i; $company->products_count = rand(25, 200); $company->years_in_business = rand(5, 30); $company->employees_count = rand(20, 500); $company->average_rating = rand(35, 50) / 10; $company->reviews_count = rand(5, 150); $company->verification_status = $i % 3 === 0 ? 'verified' : ($i % 7 === 0 ? 'gold' : null); $company->membership_plan = $i % 4 === 0 ? 'premium' : ($i % 6 === 0 ? 'enterprise' : 'basic'); @endphp
{{ substr($company->name, 0, 2) }}

{{ $company->name }}

πŸ“ {{ $company->city }}, {{ $company->country }}
@if($company->verification_status === 'gold') πŸ† Gold Verified @elseif($company->verification_status === 'verified') βœ“ Verified @endif @if($company->membership_plan === 'enterprise') Enterprise @elseif($company->membership_plan === 'premium') Premium @endif
πŸ“¦ {{ $company->products_count }} Products
🏒 {{ $company->years_in_business }} Years in Business
πŸ‘₯ {{ $company->employees_count }} Employees
@for($j = 1; $j <= 5; $j++) @if($j <= floor($company->average_rating)) ⭐ @else β˜† @endif @endfor
{{ number_format($company->average_rating, 1) }} ({{ $company->reviews_count }} reviews)
A leading {{ strtolower($company->industry) }} company based in {{ $company->country }}, specializing in high-quality products and services for the regional market. Known for reliability, innovation, and customer satisfaction.
{{ $company->industry }} Export Ready ISO Certified
@endfor
@endif

Don't see what you're looking for?

Post a Request for Quote (RFQ) and let qualified suppliers come to you

Post RFQ
@endsection @push('scripts') @endpush