Skip to content

Instantly share code, notes, and snippets.

@ambrizals
Created August 27, 2017 02:15
Show Gist options
  • Save ambrizals/2bd65ba805f131adefd949c8d3b691e0 to your computer and use it in GitHub Desktop.
Save ambrizals/2bd65ba805f131adefd949c8d3b691e0 to your computer and use it in GitHub Desktop.
Edit Akun : Part Form
{!! Form::model($akun,['route' => ['Update Profil'], 'method' => 'PUT', 'files'=> true]) !!}
<div class="row">
<div class="col-4">
<img src="{{ url('/'.$fotoprofil) }}" alt="..." class="rounded-circle">
</div>
<div class="col-8">
{!! Form::label('fotoprofil', 'Foto Profil') !!}
<p>Catatan : Gunakan foto profil dengan ukuran gambar 150 x 150 pixel.</p>
{!! Form::file('fotoprofil', ['class' => 'form-control']) !!}
</div>
</div>
<div class="form-group">
{!! Form::label('name', 'Nama') !!}
{!! Form::text('name', null, ['class' => 'form-control', 'placeholder' => 'masukan nama']) !!}
</div>
<div class="form-group">
{!! Form::label('email', 'Email') !!}
{!! Form::text('email', null, ['class' => 'form-control', 'placeholder' => 'masukan email']) !!}
</div>
<div class="form-group">
{!! Form::label('biodata', 'Biodata') !!}
{!! Form::textarea('biodata', null, ['class' => 'form-control', 'placeholder' => 'masukan email']) !!}
</div>
{!! Form::submit('Simpan Perubahan', ['class' => 'btn btn-primary btn-block']) !!}
{!! Form::close() !!}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment