File "NotificationsCount.php"
Full Path: /home/fundopuh/trader.fxex.org/app/Http/Livewire/User/NotificationsCount.php
File size: 575 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
// this Code is Cracked by dharunMods-YouTube-Channel
namespace App\Http\Livewire\User;
use App\Models\Settings;
use Livewire\Component;
class NotificationsCount extends Component
{
// create listener for notification count
protected $listeners = ['updateNotification' => '$refresh'];
public function render()
{
$settings = Settings::select('theme')->find(1);
return view("{$settings->theme}.livewire.user.notifications-count", [
'notificationsCount' => auth()->user()->unreadNotifications->count()
]);
}
}