--}}
@endif
@php
use App\Interaction;
$applicants_interactions = Interaction::where('applicant_id','=',$dataTypeContent->id)->orderBy('created_at', 'desc')->get();
$interactions = Interaction::get();
@endphp
@php
use App\Message;
$messages = Message::get();
@endphp
@if( $dataTypeContent->id)
{{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
@foreach($applicants_interactions as $applicant_interaction)
@endforeach
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]; @endphpNombre postulante | {{$applicant['firstname']}} {{$applicant['lastname']}} |
---|---|
Correo electronico | {{$applicant['email']}} |
Fecha de notificacion | {{ $notification_date }} |
Comentario | {{ $pending['feedback'] }} |
Ver en CRM |
No hay pendientes
@endif{$pendings}
@stop @section('javascript') @stop