Commit a8da961a by Juliper

profile Pelanggan

parent 84423928
...@@ -13,11 +13,16 @@ class CustomerController extends Controller ...@@ -13,11 +13,16 @@ class CustomerController extends Controller
{ {
public function profile(){ public function profile(){
//dd("masuk agan"); //dd("masuk agan");
// dd(Auth::user()->id); //dd(Auth::user()->id);
$data = DB::table('pelanggan')
->select('pelanggan.*')
->where('pelanggan.id_Akun','=',Auth::user()->id)
->get();
//$data2 = User::find(Auth::user()->id);
//dd($data[0]);
return view('adminlte::layouts.customers.profiles'); return view('adminlte::layouts.customers.profiles')->with('data',$data[0]);
} }
public function register(){ public function register(){
...@@ -48,9 +53,9 @@ class CustomerController extends Controller ...@@ -48,9 +53,9 @@ class CustomerController extends Controller
$cus->save(); $cus->save();
$this->guard()->login($user); //$this->guard()->login($user);
return redirect('/'); return redirect('login');
} }
......
...@@ -3,43 +3,38 @@ ...@@ -3,43 +3,38 @@
<div class="cuisines agileits w3layouts" style="padding-top: 50px; margin-top: 40px; "> <div class="cuisines agileits w3layouts" style="padding-top: 50px; margin-top: 40px; ">
<div class="container"> <div class="container">
<div class="col-md-4 col-sm-4 cuisines-grids agileits w3layouts cuisines-grids-2 wow slideInRight"> <div class="col-md-4 col-sm-4 cuisines-grids agileits w3layouts cuisines-grids-2 wow slideInRight">
<img src="img/avatar3.png" alt="Agileits W3layouts"> <img src="img/{{Auth::user()->foto}}" alt="Agileits W3layouts">
<h2 style="text-align: center; margin-top: 3px;"> Palti Sinaga </h2> <h2 style="text-align: center; margin-top: 3px;"> {{Auth::user()->name}} </h2>
</div> </div>
<div class="col-md-8 col-sm-8 cuisines-grids agileits w3layouts cuisines-grids-1 wow slideInLeft"> <div class="col-md-8 col-sm-8 cuisines-grids agileits w3layouts cuisines-grids-1 wow slideInLeft">
<h3>Data Diri</h3> <h3>Data Diri</h3>
<table class="table-condensed" style="font-size: 16px; margin-left: -3px; color: #777"> <table class="table-condensed" style="font-size: 16px; margin-left: -3px; color: #777">
<tr> <tr>
<td> Tempat / Tanggal Lahir</td> <td>Nama</td>
<td> Palti Sinaga</td> <td>:</td>
<td>{{$data->nama}}</td>
</tr> </tr>
<tr> <tr>
<td> Kelaasdas </td> <td> Alamat</td>
<td> test </td> <td>:</td>
<td>{{$data->alamat}}</td>
</tr> </tr>
<tr> <tr>
<td> Tempaasfasdt / Tanggal Lahir</td> <td> No Telepon</td>
<td> Palti Sinaga</td> <td>:</td>
<td>{{$data->noTelepon}}</td>
</tr> </tr>
<tr> <tr>
<td> Kelasdas </td> <td> Pekerjaan </td>
<td> test </td> <td>:</td>
</tr> <td>{{$data->pekerjaan}}</td>
<tr>
<td> Tempaqwdat / Tanggal Lahir</td>
<td> Palti Sinaga</td>
</tr>
<tr>
<td> Keasddlas </td>
<td> test </td>
</tr> </tr>
</table> </table>
<br><br> <br><br>
<h3> Testimoni </h3>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
<div class="services agileits w3layouts" style="background-color: #fff; padding: 1px 1px 1px 0px; margin-top: 30px;"> <div class="services agileits w3layouts" style="background-color: #fff; padding: 1px 1px 1px 0px; margin-top: 30px;">
<a class="agileits w3layoutswow slideInLeft" href="gallery.html" >Edit Profile <span class="glyphicon agileits w3layouts glyphicon-arrow-right" aria-hidden="true"></span></a> <a class="agileits w3layoutswow slideInLeft" href="gallery.html" >Edit Profile <span class="glyphicon agileits w3layouts glyphicon-arrow-right" aria-hidden="true"></span></a>
......
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