mercredi 27 décembre 2017

how use where condition in left join in laravel

what I want is to retrieve all media in left side and if media contain data will fill those data

what I want is to retrieve all media in left side and if media contain data will fill those data

view

<tbody>
    <?php $i= 0; ?>
    @foreach($print as $get)
        @if(count($get->media_id)>0 && $get->Status === "Approved")
            <tr>
                <?php   $i++; ?>
                <td style="font-size: 16px; width: 25px; "><?php echo $i; ?></td>
                <td style="font-size: 16px; width: 30px"></td>
                <td style="font-size: 16px; width: 98px"></td>
                <td style="font-size: 16px; width: 80px"></td>
                <td style="font-size: 16px; width: 150px"></td>
                <td style="font-size: 16px; width: 470px">{!! nl2br(e($get->Content_Description)) !!}</td>
            </tr>
        @endif
    @endforeach
    @foreach($media as  $medias )
        <?php   $i++; ?>
        <tr>
            <td style="font-size: 16px; width: 25px; "><?php echo $i; ?></td>
            <td style="font-size: 16px; width: 30px"></td>
            <td style="font-size: 16px; width: 98px"></td>
            <td style="font-size: 16px; width: 80px"></td>
            <td style="font-size: 16px; width: 150px"></td>
            <td style="font-size: 16px; width: 470px">Hakuna Taarifa kwa Leo</td>

        </tr>
    @endforeach


    </tbody>



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire