@php use Illuminate\Support\Facades\DB; $wilayah = DB::select("SELECT DISTINCT(province) as prop FROM properti WHERE province <> ''"); $tokenAds = DB::select("SELECT * FROM setting WHERE kode = 'token-ads' "); $tokenAds = $tokenAds[0]->setting; $tokenAds = json_decode(MyForm::binaryToString($tokenAds)); $tokenAds = json_decode($tokenAds)->kontent; $playlnk = DB::select("SELECT * FROM setting WHERE kode = 'play store link' "); $playlnk = $playlnk[0]->setting; $playlnk = json_decode(MyForm::binaryToString($playlnk)); $playlnk = json_decode($playlnk)->kontent; $about = DB::select("SELECT * FROM setting WHERE kode = 'about-set' "); $about = $about[0]->setting; $about = json_decode(MyForm::binaryToString($about)); $about = json_decode($about)->kontent; $kategori_properti = DB::select("SELECT * FROM kategori_properti "); $kategori_properti = json_encode($kategori_properti); $prov = DB::select("SELECT DISTINCT(province) as prov FROM properti WHERE province <> '' "); $prov = json_encode($prov); $city = DB::select("SELECT DISTINCT(city_name) as city FROM properti WHERE city_name <> '' "); $city = json_encode($city); @endphp @extends('layout.main') @section('css') @endsection @section('script') @yield('js') @endsection @section('containerutama')
@yield('container') @php $laman = DB::select("SELECT * FROM laman "); $sosmed = DB::select("SELECT * FROM sosialmedia "); @endphp @endsection