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

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