/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $contact = Contact::FindOrFail($id); $api = '/ContactMt/' . $id . '/update'; $Ajaxis = Ajaxis::MtEditFormModal([['type' => 'text', 'value' => $contact->firstname, 'name' => 'firstname', 'key' => 'First Name :'], ['type' => 'text', 'value' => $contact->lastname, 'name' => 'lastname', 'key' => 'Last Name :'], ['type' => 'date', 'value' => $contact->date, 'name' => 'date', 'key' => 'Date :'], ['type' => 'text', 'value' => $contact->phone, 'name' => 'phone', 'key' => 'Phone :']], $api); if (Request::ajax()) { return $Ajaxis; } }
/** * Show the form for editing the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function edit($id) { $task = Task::FindOrFail($id); $api = '/tasks/' . $id . '/update'; $Ajaxis = Ajaxis::MtEditFormModal([['type' => 'text', 'value' => $task->task, 'name' => 'task', 'key' => 'Tarea :'], ['type' => 'text', 'value' => $task->description, 'name' => 'description', 'key' => 'Descripcion :']], $api); if (Request::ajax()) { return $Ajaxis; } }