So, this is my json format data
{
"New Purchase Orders Created":{
"date":"2018-02-26 14:05:14.000000",
"timezone_type":3,
"timezone":"UTC"
},
"colour":"bg-primary"
}
This is my view in blade.php
<ul class="list-group list-group-flush">
@foreach( $notifications as $notification )
<?php $notificationData = json_decode($notification->data, true);?>
@foreach( $notificationData as $key=>$item )
<li class="list-group-item text-white {{ $notificationData['colour'] }}">
@if ($key!='colour')
{{ $key }}<br>
{{ $item['date'] }}
@endif
</li>
@endforeach
@endforeach
</ul>
I want to get the data into the blade. So what should I do?
This is what i want to get.
Please help. Thanks.
