samedi 23 janvier 2016

Add number of days to a date (Laravel 5)

My code is like this :

<table class="table">
    <tbody>
        <tr>
            <th>Date</th>
            <th>Charge</th>
        </tr>
        @foreach($cancel_policy_api as $key=>$value)
        <tr>
            <td>{{ $value['CheckIn'] }} + {{ $value['CXLDay'] }}</td>   
            <td>{{ $value['CXLFee'] }} </td>

        </tr>   
        @endforeach
    </tbody>
</table>


$value['CheckIn'] = '2016-01-23'
$value['CXLDay'] = '2'

I want to add CheckIn and CXLDay

So, $value['CheckIn'] + $value['CXLDay'] = 2016-01-25

How to add integer/string and date in laravel 5 view?

Thank you very much



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1REOoiB
via IFTTT

Aucun commentaire:

Enregistrer un commentaire