{{ Form::text('clinic_name', NULL, ['class' => 'form-control', 'placeholder'=>'Ej. Clinica']) }} </div> </div> <div class="form-group col-ms-12"> <label for="firstname" class="control-label col-md-2">Correo Electronico</label> <div class="col-md-10"> {{ Form::text('email', NULL, ['class' => 'form-control', 'placeholder'=>'Ej. nombre15@ejemplo.com']) }} </div> </div> <div class="form-group "> <label for="password" class="control-label col-lg-2">Especialidad</label> <div class="col-lg-10"> <?php $spe = Specialty::lists('name_es', 'id'); ?> {{ Form::text('specialty_id', NULL, ['class' => 'form-control', 'placeholder'=>'Ej. 1,2,3,4,5']) }} </div> </div> <div class="form-group col-ms-12"> <label for="firstname" class="control-label col-md-2">Telefono Celular</label> <div class="col-md-10"> {{ Form::text('phone', NULL, ['class' => 'form-control', 'placeholder'=>'8888888888']) }} </div> </div> <div class="form-group col-ms-12"> <label for="firstname" class="control-label col-md-2">lenguaje</label> <div class="col-md-10">
/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function edit($id) { $school = School::find($id); if (is_null($school)) { return Redirect::route('admin.schools.index')->withErrors(array('mainError' => 'Учебното заведение не е намерено.')); } else { if ($school->canUserEdit() == false) { return Redirect::route('admin.schools.index')->withErrors(array('mainError' => 'Нямате право да редактирате учебното заведение.')); } $types_data = Type::lists("name", "id"); $financings_data = Financing::lists("name", "id"); $specialties_data = Specialty::lists("name", "id"); return View::make('admin.school.edit')->with('school', $school)->with('types_data', $types_data)->with('specialties_data', $specialties_data)->with('financings_data', $financings_data); } }