Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @extends('layouts.app')
- @section('content')
- <div class="container">
- <div class="row">
- <div class="col-md-10 col-md-offset-1">
- @if ($user->gender == 'Pria')
- <img src="/uploads/avatars/pria.png{{-- {{ $user->avatar }} --}}" style="width:150px; height:150px; float:left; border-radius:50%; margin-right:25px;">
- @else ($user->gender == 'Wanita')
- <img src="/uploads/avatars/wanita.png{{-- {{ $user->avatar }} --}}" style="width:150px; height:150px; float:left; border-radius:50%; margin-right:25px;">
- @endif
- <h2>{{ $user->name }}'s Profile</h2>
- <form enctype="multipart/form-data" action="/profile" method="POST">
- <label>Update Profile Image</label>
- <input type="file" name="avatar">
- <input type="hidden" name="_token" value="{{ csrf_token() }}">
- <input type="submit" class="pull-right btn btn-sm btn-primary">
- </form>
- </div>
- </div>
- </div>
- @endsection
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement