@extends('layouts.app') @section('title', $branch->name . ' — TI Manager') @section('content')
{{-- Encabezado --}} {{-- Flash Messages --}} @if(session('success'))
{{ session('success') }}
@endif {{-- Empresa --}}
Empresa: {{ $company->name }}
{{-- Dirección --}}
Dirección
@if($branch->address)
Dirección {{ $branch->address }}
@endif @if($branch->city)
Ciudad {{ $branch->city }}
@endif @if($branch->department)
Departamento {{ $branch->department }}
@endif @if(!$branch->address && !$branch->city && !$branch->department)

No se ha registrado dirección.

@endif
{{-- Contacto --}}
Contacto
@if($branch->phone) @endif @if($branch->contact_person)
Persona de contacto {{ $branch->contact_person }}
@endif @if(!$branch->phone && !$branch->contact_person)

No se ha registrado información de contacto.

@endif
{{-- GPS --}} @if($branch->hasGps()) Abrir en Google Maps @endif {{-- Notas --}} @if($branch->notes)
Notas

{{ $branch->notes }}

@endif {{-- Inventario de esta sede --}}

Inventario de esta sede @if($branch->inventoryItems->count() > 0) ({{ $branch->inventoryItems->count() }}) @endif

Agregar equipo
@if($branch->inventoryItems->count() > 0) {{-- Vista móvil --}}
@foreach($branch->inventoryItems as $item)
{{ $item->name }}
{{ $item->status_label }}
@if($item->brand || $item->model) {{ $item->brand }} {{ $item->model }} @endif @if($item->serial_number) · S/N: {{ $item->serial_number }} @endif
@if($item->assigned_to)
{{ $item->assigned_to }}
@endif
@endforeach
{{-- Vista desktop --}}
@foreach($branch->inventoryItems as $item) @endforeach
Nombre Marca / Modelo Serial Estado Asignado a
{{ $item->name }} {{ $item->brand }} {{ $item->model }} {{ $item->serial_number ?? '—' }} {{ $item->status_label }} {{ $item->assigned_to ?? '—' }}
@else

Sin equipos en esta sede

Agrega equipos de inventario a esta sede.

Agregar equipo
@endif
@endsection