Commit 3e7254b7 by Palti Sinaga

x

parents 42e20a5f 11593880
......@@ -76,4 +76,10 @@ class CustomerController extends Controller
return view('adminlte::layouts.pages.Homestay')->with('data',$data[0]);
}
public function updateProfile(Request $request,$id){
$cus = Customer::find($id);
dd("masuk agan",$id);
}
}
......@@ -33,7 +33,7 @@ class HomeController extends Controller
*/
public function index()
{
dd("masuk gan");
//dd("masuk gan");
return view('adminlte::home');
}
}
\ No newline at end of file
......@@ -4,41 +4,46 @@
<div class="cuisines agileits w3layouts" style="padding-top: 50px; margin-top: 80px; ">
<div class="container">
<div class="register agileits w3layouts wow agileits w3layouts slideInLeft">
<form class="form-horizontal">
<form class="form-horizontal" action="{{url('editProfileCustomer/'.$data->id)}}" method="post" enctype="multipart/form-data">
<input type="hidden" name="_method" value="PUT">
{{csrf_field()}}
<div class="form-group">
<label for="inputEmail3" class="col-sm-2 control-label">Nama</label>
<div class="col-sm-10">
<input type="email" class="form-control" id="inputEmail3" placeholder="Email">
<input type="text" class="form-control" id="inputEmail3" value="{{$data->nama}}">
</div>
</div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-2 control-label">Alamat</label>
<div class="col-sm-10">
<input type="password" class="form-control" id="inputPassword3" placeholder="Alamat">
<input type="text" class="form-control" id="inputPassword3" value="{{$data->alamat}}">
</div>
</div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-2 control-label">No.Telepon</label>
<div class="col-sm-10">
<input type="password" class="form-control" id="inputPassword3" placeholder="No.Telepon">
<input type="text" class="form-control" id="inputPassword3" value="{{$data->noTelepon}}">
</div>
</div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-2 control-label">Pekerjaan</label>
<div class="col-sm-10">
<input type="password" class="form-control" id="inputPassword3" placeholder="Pekerjaan">
<input type="text" class="form-control" id="inputPassword3" value="{{$data->pekerjaan}}">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label"> Foto </label>
<div class="col-sm-10">
<<<<<<< HEAD
<input type="file" class="btn btn-success" value="Browse">
=======
<input type="file" value="Browse" name="foto" id="picture" >
>>>>>>> 11593880b2ce26f2e4aa805f4991f03545402bfa
</div>
</div>
<div class="form-group" align="right">
<div class="col-sm-12">
<input type="submit" class="btn btn-primary"></input>
</div>
<input type="submit" class="btn btn-primary">
</div>
</div>
</form>
......
......@@ -37,7 +37,7 @@
<div class="services agileits w3layouts" style="background-color: #fff; padding: 1px 1px 1px 0px; margin-top: 30px;">
<a class="agileits w3layoutswow slideInLeft" href="{{url('editProfileCustomer/'.$data->id_Pelanggan)}}" >Edit Profile <span class="glyphicon agileits w3layouts glyphicon-arrow-right" aria-hidden="true"></span></a>
<a class="agileits w3layoutswow slideInLeft" href="{{url('editProfileCustomer/'.$data->id)}}" >Edit Profile <span class="glyphicon agileits w3layouts glyphicon-arrow-right" aria-hidden="true"></span></a>
<a class="agileits w3layoutswow slideInLeft" href="gallery.html">History <span class="glyphicon agileits w3layouts glyphicon-arrow-right" aria-hidden="true"></span></a>
</div>
......
......@@ -46,7 +46,10 @@ Route::group(['middleware' => 'auth'], function () {
Route::get('detailhomestay/{id}','CustomerController@detailhomestay');
Route::get('daftar','CustomerController@register');
Route::post('daftar','CustomerController@registerStore');
//Route::post('editProfileCustomer/{id}','CustomerController@update');
//Route::put('editProfile/{id}','CustomerController@updateProfile');
Route::get('editProfileCustomer/{id}','CustomerController@editProfile');
Route::put('editProfileCustomer/{id}','CustomerController@updateProfile');
Route::resource('admin', 'AdminController');
Route::get('listowner','AdminController@listOwner');
Route::resource('owner','OwnerController');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment