@extends('layouts.master_app') @section('title') Contacto @endsection @section('menu_contacts', 'here show') @section('css') @endsection @section('content')

Contactos {{$contact->person->full_name}}

{{$contact->person->letters_name}}
{{$contact->person->full_name}}
@if(isset($contact->person->emails[0]))   {{$contact->person->emails[0]->email}} @endif       @if(isset($contact->person->phones[0]))  {{$contact->person->phones[0]->phone}} @endif
0
Total de pagos
0
Ingresos recurrentes
@if($submenu == null)

Cotizaciones

Total {{count($contact->proposals)}}
@csrf
@if(count($contact->proposals)!=0)
@foreach($contact->proposals as $proposal)
Folio {{$proposal->folio}}
${{number_format($proposal->total,2,'.',',')}}
Ver cotización
@endforeach
@else

Este cliente todavía no tiene cotizaciones creadas

@endif

Tickets

@if(count($contact->tickets) != 0) @include('partials.success') @foreach($contact->tickets as $item) @endforeach
Fecha programada Asunto
{{$item->date}}
{{$item->status->name}}
{{$item->subject}}
{{$item->priority->name}}
Acciones
@else

No hay tickets registrados para este cliente

@endif

Servicios contratados

@if(count($contact->contracted_services) != 0) @include('partials.success') @foreach($contact->contracted_services as $item) @if(isset($item->service)) @endif @endforeach
Servicio
{{$item->service->name}}
{{$item->status}}
Fecha de contratación: {{$item->contract_date_format}} @if($item->activate_billing_period)
Facturación cada {{$item->every }} {{ $item->billing_period == 'anios' ? 'Años' : $item->billing_period }}

Próximo pago {{$item->billing_period_date_format}} por ${{$item->cost}} {{$item->currency}}
@endif
Acciones
@else

Este cliente todavía no tiene servicios contratados

@endif

Pagos

@if(count($contact->payments) != 0) @include('partials.success') @foreach($contact->payments as $item) @endforeach
Fecha Servicio Cantidad
{{$item->date_format}} {{ isset($item->service) ? $item->service->name : '' }} @if($item->file != null)
{{$item->file}}
@endif
${{$item->amount}}
{{$item->status->name}}
Acciones
@else

No hay registro de pagos

@endif
@endif @if($submenu == 'notes')
@csrf
{{\Auth::user()->person->letters_name}}
{{\Auth::user()->person->fullname}} {{\Auth::user()->email}}
@if(count($contact->notes) != 0 )
@include('partials.success') @foreach($contact->notes as $item)
{{$item->contact->person->letters_name}}
{!! $item->note !!}
@endforeach
@endif
@endif
@endsection @section('js') @endsection