<div>
    <h4>General:</h4>

    @if($task->taskdata->title)
        <h5>Título</h5>
        {{$task->taskdata->title}}
        <hr>
    @endif

    @if($task->taskdata->description)

        <h5>Descripción</h5>
        {!!$task->taskdata->description!!}
        <hr>
    @endif
    @if($task->taskdata->deadline)
        <h5>Deadline</h5>
        {{ date('d-m-Y ', strtotime(str_replace('/', '-',$task->taskdata->deadline))) }}
        <hr>
    @endif
    @if ($task->taskdata->email_request == 'registration')
        @if($task->taskdata->email_name)
            <h4>Solicitud Cuenta Institucional </h4>
            <hr>

            <h5>Nombre</h5>
            {{$task->taskdata->email_name}}
            <hr>
        @endif
        @if($task->taskdata->email_surname)

            <h5>Apellido</h5>
            {{$task->taskdata->email_surname}}
            <hr>
        @endif
        @if($task->taskdata->email_personalemail)

            <h5>Email Personal</h5>
            {{$task->taskdata->email_personalemail}}
            <hr>
        @endif
        @if($task->taskdata->email_observation)

            <h5>Observaciones</h5>
            {{$task->taskdata->email_observation}}
            <hr>
        @endif
    @endif
    @if ($task->taskdata->email_request == 'laundering')
        @if($task->taskdata->email_name_clean)
            <h4>Blanqueo de Cuenta </h4>
            <hr>

            <h5>Nombre de la Cuenta a Blanquear</h5>
            {{$task->taskdata->email_name_clean}}
            <hr>
        @endif
        @if($task->taskdata->email_personalemail)

            <h5>Email Personal</h5>
            {{$task->taskdata->email_personalemail}}
            <hr>
        @endif
    @endif

    @if ($task->taskdata->email_request == 'delete')
        @if($task->taskdata->email_deleteemail)
            <h4>Baja de Cuenta </h4>
            <hr>

            <h5>Nombre de la Cuenta a Eliminar</h5>
            {{$task->taskdata->email_deleteemail}}
            <hr>
        @endif
        @if($task->taskdata->email_description)

            <h5>Observaciones</h5>
            {{$task->taskdata->email_description}}
            <hr>
        @endif
    @endif




    @if($task->taskdata->web_link)
        <h4>Link donde aplicar los cambios</h4>
        <hr>


        <h5>web_link</h5>
        {{$task->taskdata->web_link}}
        <hr>
    @endif

    @if($task->taskdata->event_date_format)
        @if($task->type == 'evento')
            <h4>Solicitud de Evento</h4>
        @else
            <h4>Lanzamientos / Novedades </h4>
        @endif
        <hr>
        <h5>Fecha del evento</h5>
        {{Carbon\Carbon::createFromFormat('Y-m-d H:i:s', $task->taskdata->event_date_format)->format('d-m-Y')}}
        <hr>

    @endif
    @if($task->taskdata->event_time)

        <h5>Hora del evento</h5>
        {{$task->taskdata->event_time}}
        <hr>
    @endif
    @if($task->taskdata->event_venue)

        <h5>Lugar del evento</h5>
        {{$task->taskdata->event_venue}}
        <hr>
    @endif
    @if($task->taskdata->event_is_paid)

        <h5>Arancelada</h5>

        {{ $task->taskdata->event_is_paid ? 'Si' : 'No' }}

        <hr>
    @endif
    @if($task->taskdata->event_cost)

        <h5>Monto</h5>
        {{$task->taskdata->event_cost}}
        <hr>
    @endif


    @if($task->taskdata->event_participants)

        <h5>Areas participantes</h5>
        {!!$task->taskdata->event_participants!!}
        <hr>

    @endif


    @if($task->taskdata->event_contact_name)

        <h4>Contacto para Preinscripciones:</h4>
        <hr>

        <h5>Nombre</h5>
        {{$task->taskdata->event_contact_name}}
        <hr>

    @endif
    @if($task->taskdata->event_contact_email)

        <h5>Email</h5>
        {{$task->taskdata->event_contact_email}}
        <hr>
    @endif
    @if($task->taskdata->event_contact_tel)

        <h5>Teléfono</h5>
        {{$task->taskdata->event_contact_tel}}
        <hr>
    @endif
    @if($task->taskdata->event_web)

        <h5>Sitio Web</h5>
        {{$task->taskdata->event_web}}
        <hr>
    @endif

    @if($task->taskdata->event_twitter)

        <h5>Twitter</h5>
        {{$task->taskdata->event_twitter}}
        <hr>
    @endif
    @if($task->taskdata->event_facebook)

        <h5>Facebook</h5>
        {{$task->taskdata->event_facebook}}
        <hr>
    @endif
    @if($task->taskdata->event_other)

        <h5>Otro</h5>
        {{$task->taskdata->event_other}}
        <hr>
    @endif


    @if($task->taskdata->event_disexp)

        <h5>Disertante / Expositor:</h5>
        {!!$task->taskdata->event_disexp!!}
        <hr>
    @endif



    <?php

    ?>
    @if ($task->type != 'evento')
        @if(!empty($task->taskdata->event_coverage))
            <h4>Solicitud de cobertura</h4>

            @foreach($task->taskdata->event_coverage as $coverage)

                {{ $allPipelines[$coverage-1]}}<br>****

            @endforeach

        @endif
    @endif

    @if($task->taskdata->event_foundation)

        <h5>Fundamentación</h5>
        {!!$task->taskdata->event_foundation!!}
        <hr>
    @endif

    @if(!empty($task->taskdata->event_interest))

    <?php
    $interests  =array(
        '','Académico','Difusión','Posicionamiento','Promocional','Archivo');
    ?>
    <br>
        <h4>Interés</h4>

            @if($task->taskdata->event_interest)
            @foreach($task->taskdata->event_interest as $interest)

                {{ $interests[$interest]}}<br>
            @endforeach
        @endif

        <hr>
    @endif








    @if($task->taskdata->event_interviewed)

        <h5>Posibles Entrevistados</h5>
        {!!$task->taskdata->event_interviewed!!}
        <hr>
    @endif

    @if($task->taskdata->event_applicant)

        <h5>Datos de Contacto del Solicitante</h5>
        {{strip_tags( $task->taskdata->event_applicant)}}
        <hr>
    @endif


</div>