
<div class="modal-header">
    <h1 class="modal-title fs-6" id="exampleModalLabel"> <i class="fal fa-user me-1"></i> {{$head ?? ''}} </h1>
    <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
    <div class="modal-form">
        <div class="row">
            <div class="col-lg-12">
                <div class="form-group mb-3">
                    <div class="avatar-upload">
                        <div class="avatar-preview">
                            <div id="imagePreview" style="background-image: url({{asset($company->image ?? 'assets/admin/images/avatar.png')}});">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="form-group mb-3">
                <label for="" class="d-block mb-2"> {{ __('companies.domain') }} </label>
                <p class="form-control">{{$company->domain ?? ''}}</p>
            </div>
            <div class="form-group mb-3">
                <label for="" class="d-block mb-2"> {{ __('companies.sector_id') }} </label>
                <p class="form-control">{{$company->sector->currentDescription->title ?? ''}}</p>
            </div>
            <div class="form-group mb-3">
                <label for="" class="d-block mb-2"> {{ __('companies.country_id') }} </label>
                <p class="form-control">{{$company->country->currentDescription->title ?? ''}}</p>
            </div>
            @foreach($languages as $language)
                <div class="col-lg-6">
                    <div class="form-group mb-3">
                        <label for="" class="d-block mb-2"> {{ __('companies.title') }} {{ count($languages) > 1 ? "({$language->name})" : '' }} </label>
                        <p class="form-control">{{ $company[$language->local]->title ?? ''}}</p>
                    </div>
                </div>
                <div class="col-lg-6">
                    <div class="form-group mb-3">
                        <label for="" class="d-block mb-2"> {{ __('companies.address') }} {{ count($languages) > 1 ? "({$language->name})" : '' }} </label>
                        <p class="form-control">{{ $company[$language->local]->address ?? ''}}</p>
                    </div>
                </div>
                <div class="col-lg-12">
                    <div class="form-group mb-3">
                        <label for="" class="d-block mb-2"> {{ __('companies.description') }} {{ count($languages) > 1 ? "({$language->name})" : '' }} </label>
                        <p class="form-control">{{ $company[$language->local]->description ?? ''}}</p>
                    </div>
                </div>
            @endforeach
            @if($company->latitude && $company->longitude)
                <div class="form-group mb-3">
                    <label for="" class="d-block mb-2"> {{__('companies.map')}} </label>
                    <div  id="map" class="map">
                        <iframe
                            style="width: 100%;border:0"
                            loading="lazy"
                            allowfullscreen
                            referrerpolicy="no-referrer-when-downgrade"
                            src="https://www.google.com/maps?q={{$company->latitude ?? ''}},{{$company->longitude ?? ''}}&hl=es;z=14&output=embed">
                        </iframe>
                    </div>
                </div>
            @endif
        </div>
    </div>
</div>


