@php use Illuminate\Support\Facades\DB; $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; $laman = DB::select("SELECT * FROM laman WHERE judul = '$about' "); $kode = $laman[0]->kode; $myfile = fopen("assets/upload/laman/$kode.json", "r") or die("Unable to open file!"); $data = fgets($myfile); fclose($myfile); $data = json_decode($data); @endphp @extends('layout.front') @section('container')
{!!$data->html!!}
Advance Search
List By Categories
@php $kategori = DB::select("SELECT DISTINCT(kategori) as kategori FROM properti WHERE kategori <> ''"); @endphp
    @foreach($kategori as $kategori) @php $tot = DB::select("SELECT count(*) as tot FROM properti WHERE kategori = '$kategori->kategori' "); $tot = $tot[0]->tot; @endphp kategori)}}">{{$kategori->kategori}} {{$tot}} @endforeach

List By Categories
@php $kategori = DB::select("SELECT DISTINCT(city_name) as kategori FROM properti WHERE city_name <> ''"); @endphp
    @foreach($kategori as $kategori) @php $tot = DB::select("SELECT count(*) as tot FROM properti WHERE city_name = '$kategori->kategori' "); $tot = $tot[0]->tot; @endphp kategori)}}">{{$kategori->kategori}} {{$tot}} @endforeach
@endsection @section('js') @endsection