![]() Server : Apache/2 System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64 User : gositeme ( 1004) PHP Version : 8.2.29 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/gositeme/domains/pdf-ai.com/public_html/app/Services/ |
<?php
use App\Models\Advertisement;
function adsense($type)
{
$adsense = Advertisement::where('type', $type)->where('status', true)->first();
return $adsense;
}
function adsense_header()
{
if (adsense('adsense_header')) {
return adsense('adsense_header')->code;
}
}
function adsense_download_top_728x90()
{
if (adsense('adsense-download-top-728x90')) {
return '<center>
<div class="google-ads-728 mb-6">' . adsense('adsense-download-top-728x90')->code . '</div>
</center>';
}
}
function adsense_download_bottom_728x90()
{
if (adsense('adsense-download-bottom-728x90')) {
return '<center>
<div class="google-ads-728 mb-6">' . adsense('adsense-download-bottom-728x90')->code . '</div>
</center>';
}
}
function adsense_download_300x250()
{
if (adsense('adsense-download-300x250')) {
return '<center>
<div class="google-ads-300 mb-6">' . adsense('adsense-download-300x250')->code . '</div>
</center>';
}
}
function adsense_frontend_features_728x90()
{
if (adsense('adsense-frontend-features-728x90')) {
return '<center>
<div class="google-ads-728 mb-6">' . adsense('adsense-frontend-features-728x90')->code . '</div>
</center>';
}
}
function adsense_frontend_blogs_728x90()
{
if (adsense('adsense-frontend-blogs-728x90')) {
return '<center>
<div class="google-ads-300 mt-8">' . adsense('adsense-frontend-blogs-728x90')->code . '</div>
</center>';
}
}