public function create_propbuilding($ac_id, $tipe)
 {
     $golongan = TransGol::lists('name', 'id');
     $investors = TransInvestor::lists('name', 'id');
     $status_sertifikat = TransStatusCert::lists('name', 'id');
     $forbuildings = TransForBuilding::lists('name', 'id');
     $statusbuildings = TransStatusBuilding::lists('name', 'id');
     $index_tanah = TransactionPropland::lists('index', 'index');
     return view('transaction_assets.create_propbuilding', compact('tipe', 'ac_id', 'golongan', 'investors', 'forbuildings', 'statusbuildings', 'index_tanah'));
 }
    public function trans_gol()
    {
        \DB::statement(\DB::raw('set @rownum=0'));
        $trans_gols = TransGol::select([\DB::raw('@rownum  := @rownum  + 1 AS rownum'), 'id', 'name']);
        return Datatables::of($trans_gols)->addColumn('action', function ($trans_gol) {
            return '
      <button id="btn-delete" class="btn btn-xs btn-danger" data-remote="./destroy/' . $trans_gol->id . '/' . 'gol' . '">Delete</button>

      ';
        })->make(true);
    }