@extends('layouts.front') @section('content') @include('includes.topbar')

Notifications

{{-- @foreach ($notifications as $notification) @php $profileImg = ''; if(!empty($notification->user_dp)) { if($notification->login_type == 'O') { $profileImg = asset('storage/profile_pic/' . $notification->user_id) . '/small/' . $notification->user_dp; } else { $profileImg = $notification->user_dp; } } else { $profileImg = asset('default/default.png'); } @endphp
{{-- --}} {{-- user_id) }}';" src="{{ $profileImg }}" class="w-50 rounded-circle link">
user_id) }}';">ee{{ $notification->username }} @if ($notification->notify_total > 1) and {{ $notification->notify_total - 1 }} other @endif
{{ $notification->message }}
{{ \Carbon\Carbon::createFromTimeStamp(strtotime($notification->added_on))->diffForHumans() }}
@endforeach --}} @if (!empty($notifications)) @foreach ($notifications as $notification) @php $profileImg = ''; if (!empty($notification->profileImg)) { $profileImg = $notification->profileImg; } else { if(!empty($notification->user_dp)) { if($notification->login_type == 'O') { $profileImg = asset('storage/profile_pic/' . $notification->user_id) . '/small/' . $notification->user_dp; } else { $profileImg = $notification->user_dp; } } else { $profileImg = asset('default/default.png'); } } @endphp
user_id) }}';" src="{{ $profileImg }}" class="rounded-circle link">
{{-- --}} user_id) }}';">{{ $notification->username }} {{-- --}} @if ($notification->notify_total > 1) and {{ $notification->notify_total - 1 }} other @endif
{{ $notification->message }}
{{ \Carbon\Carbon::createFromTimeStamp(strtotime($notification->added_on))->diffForHumans() }} @if ($notification->type == 'F')
@else
@endif
@endforeach
{{ $notifications->links() }}
@endif
@endsection