I'm still a newbie in Laravel, I'm using Laravel 4.2 Is there a way where if the author_ID is matched with Auth::ID it will show the specific line of codes
Code blade example:
@if ($data['authorID'] == Auth::id())
<a href="@{{invoice_url}}" target="_blank">
@{{payment_date | date:_dateFormat.shortDate}}
</a>
@else
<p>@{{payment_date | date:_dateFormat.shortDate}}</p>
@endif
Where author_id's data is this
$data['authorID'] = [
author_id => 5,
author_id => 2
]
I've found the solution instead of using @if I've used ng-if to get the result I want