public function create_vehicle($ac_id)
 {
     $vehicles = TransForVehicle::lists('name', 'id');
     $golongan = TransGol::lists('name', 'id');
     $investors = TransInvestor::lists('name', 'id');
     $units = TransUnit::lists('name', 'id');
     return view('transaction_assets.create_vehicle', compact('ac_id', 'vehicles', 'golongan', 'investors', 'units'));
 }
    public function trans_unit_data()
    {
        \DB::statement(\DB::raw('set @rownum=0'));
        $trans_units = TransUnit::select([\DB::raw('@rownum  := @rownum  + 1 AS rownum'), 'id', 'name']);
        return Datatables::of($trans_units)->addColumn('action', function ($trans_unit) {
            return '
      <button id="btn-delete" class="btn btn-xs btn-danger" data-remote="./destroy/' . $trans_unit->id . '/' . 'unit' . '">Delete</button>

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