File: /home/lenf4658/public_html/unukaltim.lensapedia.id/unukaltim/app/View/Components/Web/SosmedIcon.php
<?php
namespace App\View\Components\Web;
use App\Models\WebSetting;
use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;
class SosmedIcon extends Component
{
/**
* Create a new component instance.
*/
public function __construct()
{
//
}
/**
* Get the view / contents that represent the component.
*/
public function render(): View|Closure|string
{
$data['wa'] = WebSetting::where('key', 'WHATSAPP_LINK')->first()->value;
$data['fb'] = WebSetting::where('key', 'FACEBOOK_LINK')->first()->value;
$data['ig'] = WebSetting::where('key', 'INSTAGRAM_LINK')->first()->value;
return view('components.web.sosmed-icon', $data);
}
}