@extends('voyager::master') @section('css') @stop @section('content')
{{--
--}}
@if(!is_null($dataTypeContent->getKey())) {{ method_field("PUT") }} @endif {{ csrf_field() }}

Información personal

@if (count($errors) > 0)
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

Información de postulación

@php use App\Source; $sources = Source::get(); @endphp
@php use App\Admission; $admissions = Admission::get(); @endphp
@php use App\ApplicantStatus; $statuses = ApplicantStatus::get(); @endphp
@php use App\Interests; $interests = Interests::get(); @endphp

Información de contacto

@php use App\Interaction; $applicants_interactions = Interaction::where('applicant_id','=',$dataTypeContent->id)->orderBy('created_at', 'desc')->get(); $interactions = Interaction::get(); @endphp
{{Interaction::where('applicant_id','=',$dataTypeContent->id)->where('interaction_type_id','=',2)->count()}} Correos
{{Interaction::where('applicant_id','=',$dataTypeContent->id)->where('interaction_type_id','=',1)->count()}} llamadas
{{Interaction::where('applicant_id','=',$dataTypeContent->id)->where('interaction_type_id','=',3)->count()}} visitas
@php use App\Message; $messages = Message::get(); @endphp @if( $dataTypeContent->id)
@foreach($applicants_interactions as $applicant_interaction)
@if ($applicant_interaction->notification_date !== NULL)
@endif
@php $user = App\User::where('id', '=', $applicant_interaction->user_id)->first(); @endphp

@endforeach
@endif

Notificaciones CRM

@php use App\InteractionType; $interactions = InteractionType::get(); use App\ResultType; $resulttype = ResultType::get(); $messages = Message::get(); use App\Applicant; $applicants = Applicant::get(); use Carbon\Carbon; $today = Carbon::today()->format('d-m-Y'); $pendings = Interaction::whereDate('notification_date', '=', Carbon::today()->toDateString())->get(); $pendings = $pendings->toArray(); @endphp @if (!empty($pendings))

Interacciones pendientes de hoy:

@foreach ($pendings as $pending) @php $applicant = Applicant::where('id','=',$pending['applicant_id'])->orderBy('created_at', 'desc')->first(); $applicant = $applicant->toArray(); $interaction_type = InteractionType::where('id','=',$pending['interaction_type_id'])->orderBy('created_at', 'desc')->first(); $result_type = ResultType::where('id','=',$pending['result_id'])->orderBy('created_at', 'desc')->first(); $tmp_date = $pending['notification_date']; $notification_date = explode(" ", $tmp_date); $notification_date = $notification_date[0]; @endphp
Nombre postulante {{$applicant['firstname']}} {{$applicant['lastname']}}
Correo electronico {{$applicant['email']}}
Fecha de notificacion {{ $notification_date }}
Comentario {{ $pending['feedback'] }}
Ver en CRM
@endforeach @else

No hay pendientes

@endif

{$pendings}

@stop @section('javascript') @stop