@extends('commercial-network.layout', ['organization' => $org->id]) @section('network-content')

{{ $org->name }}

{{ config('commercial-network.organization_types.'.$org->type, $org->type) }}

Desarrollos

@forelse($developments as $development)

{{ $development->name }}

@empty

No hay desarrollos asignados.

@endforelse
@if($abilities['inventory'])
Incorporar un desarrollo existente
@csrf
@endif
@if($abilities['members'])

Miembros y roles

@foreach($members as $member)@endforeach
NombreEmailRolEstado
{{ $member->first_name }} {{ $member->last_name }}{{ $member->email }}{{ config('commercial-network.roles.'.$member->role, $member->role) }}{{ $member->active ? 'Activo' : 'Inactivo' }}
Agregar o actualizar miembro
@csrf
@endif

Buscar lotes compatibles

@csrf
@if(is_array(session('network_result')) && isset(session('network_result')[0]['lot_id']))
@foreach(session('network_result') as $match)@endforeach
LoteCompatibilidadMotivosCotización
#{{ $match['lot_id'] }}{{ $match['match_score'] }}%{{ implode(' · ', $match['reasons']) }}{{ $match['quote_summary']['total'] ?? '' }} {{ $match['quote_summary']['currency'] ?? '' }}
Mensualidad: {{ $match['quote_summary']['installment_amount'] ?? '' }}
@endif @if($abilities['commercial'])
Pesos de compatibilidad
@csrf
@foreach(['budget'=>30,'monthly_payment'=>25,'location'=>15,'surface'=>15,'availability'=>15] as $key=>$value)@endforeach
@endif
@if($abilities['subscription'])

Plan y suscripción

{{ $subscription?->name }} · {{ $subscription?->status }}

@foreach($usage as $feature=>$quantity)

{{ ['max_users'=>'Usuarios','max_developments'=>'Desarrollos','max_leads'=>'Prospectos'][$feature] }}: {{ $quantity }} / {{ ($features[$feature] ?? 0) < 0 ? 'Sin límite' : ($features[$feature] ?? 0) }}

@endforeach
@csrf
@endif @endsection