芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/rentandbuyrealty.com/pennysave/application/app/Providers/AppServiceProvider.php
share($viewShare); view()->composer('admin.components.tabs.user', function ($view) { $view->with([ 'bannedUsersCount' => User::banned()->count(), 'emailUnverifiedUsersCount' => User::emailUnverified()->count(), 'mobileUnverifiedUsersCount' => User::mobileUnverified()->count(), ]); }); view()->composer('admin.components.sidenav', function ($view) { $view->with([ 'bannedUsersCount' => User::banned()->count(), 'emailUnverifiedUsersCount' => User::emailUnverified()->count(), 'mobileUnverifiedUsersCount' => User::mobileUnverified()->count(), 'pendingTicketCount' => SupportTicket::whereIN('status', [0,2])->count(), 'pendingDepositsCount' => Deposit::pending()->count(), ]); }); view()->composer('admin.components.tabs.deposit', function ($view) { $view->with([ 'pendingDepositsCount' => Deposit::pending()->count(), ]); }); view()->composer('admin.components.tabs.ticket', function ($view) { $view->with([ 'pendingTicketCount' => SupportTicket::whereIN('status', [0,2])->count(), ]); }); view()->composer('admin.components.topnav', function ($view) { $view->with([ 'adminNotifications'=>AdminNotification::where('read_status',0)->with('user')->orderBy('id','desc')->take(10)->get(), 'adminNotificationCount'=>AdminNotification::where('read_status',0)->count(), ]); }); view()->composer('admin.components.tabs.coupon', function ($view) { $view->with([ 'pendingCoupon'=> Coupon::where('status',0)->count(), 'approvedCoupon'=> Coupon::where('status',1)->count(), 'allCoupon'=> Coupon::count(), ]); }); view()->composer('includes.seo', function ($view) { $seo = Frontend::where('data_keys', 'seo.data')->first(); $view->with([ 'seo' => $seo ? $seo->data_values : $seo, ]); }); if($general->force_ssl){ \URL::forceScheme('https'); } Paginator::useBootstrapFour(); } }