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_for_building()
    {
        \DB::statement(\DB::raw('set @rownum=0'));
        $trans_for_buildings = TransForBuilding::select([\DB::raw('@rownum  := @rownum  + 1 AS rownum'), 'id', 'name']);
        return Datatables::of($trans_for_buildings)->addColumn('action', function ($trans_for_building) {
            return '
      <button id="btn-delete" class="btn btn-xs btn-danger" data-remote="./destroy/' . $trans_for_building->id . '/' . 'for_building' . '">Delete</button>

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