@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 pedidos
0
Total de pagos
0
Saldo
@if($submenu == null)

Pedidos

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

Este cliente todavĂ­a no tiene cotizaciones creadas

@endif

Precios

@if(count($contact->prices) != 0) @include('partials.success') @foreach($contact->prices as $item) @if(isset($item->company_product)) @endif @endforeach
Producto Precio
{{$item->company_product->name}} {{$item->price}} Acciones
@else

No hay precios registrados para este cliente

@endif

Pagos

@if(count($contact->payments) != 0) @include('partials.success') @foreach($contact->payments as $item) @endforeach
Fecha Cantidad
{{$item->date_format}} {{ $item->concept }} @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