@extends('layouts.simple.master') @section('title', trans(app()->getLocale() . '.investor_details')) @section('css') @endsection @section('main_content')

{{ trans(app()->getLocale() . '.investor_details') }}

@if ($investor->image) Investor @else
{{ strtoupper(substr($investor->name ?? 'N', 0, 1)) }}
@endif

{{ $investor->name ?? 'N/A' }}

{{ $investor->email ?? 'N/A' }}

@if($investor->city) @php $locale = app()->getLocale(); $cityName = is_array($investor->city->name) ? ($investor->city->name[$locale] ?? $investor->city->name['en'] ?? $investor->city->name['ar'] ?? 'N/A') : ($investor->city->name ?? 'N/A'); @endphp

{{ $cityName }}

@endif
{{ trans(app()->getLocale() . '.companies') }}
@forelse($companiesWithOffers as $company)
@if ($company->logo) @else
{{ strtoupper(substr($company->name ?? 'N', 0, 1)) }}
@endif
{{ $company->name ?? 'N/A' }}
@if($company->category) @php $locale = app()->getLocale(); $categoryName = is_array($company->category->name) ? ($company->category->name[$locale] ?? $company->category->name['en'] ?? $company->category->name['ar'] ?? 'N/A') : ($company->category->name ?? 'N/A'); @endphp

{{ $categoryName }}

@endif @if(isset($offersByCompany[$company->id])) @php $offerCount = count($offersByCompany[$company->id]); $offerText = $offerCount == 1 ? trans(app()->getLocale() . '.offer') : trans(app()->getLocale() . '.offers'); @endphp

{{ $offerCount }} {{ $offerText }}

@endif
@empty

{{ trans(app()->getLocale() . '.no_companies_found') }}

@endforelse
@endsection @section('scripts') @endsection