33 lines
932 B
PHP
33 lines
932 B
PHP
|
|
||
|
@php
|
||
|
$menu = App\Menu::all()->toArray();
|
||
|
@endphp
|
||
|
|
||
|
@extends('master')
|
||
|
@section('main_content')
|
||
|
|
||
|
|
||
|
<h1>Change Profile Picture</h1>
|
||
|
@if ($errors -> any() )
|
||
|
<div class="alert alert-danger">
|
||
|
<ul>
|
||
|
@foreach ($errors->all() as $error)
|
||
|
<li>{{ $error }}</li>
|
||
|
@endforeach
|
||
|
</ul>
|
||
|
</div>
|
||
|
@endif
|
||
|
<form method="post" action="{{url('user/changePic/' . $user['id'])}}" class="content-block" enctype="multipart/form-data">
|
||
|
{{csrf_field()}}
|
||
|
|
||
|
<img width="150" src="{{asset('images/profilePics/' . $user['profilepic'])}}" alt=""><br><br>
|
||
|
<label for="change-pic">change :</label>
|
||
|
<input type="file" name="image" value="Upload">
|
||
|
<div class="text-center">
|
||
|
<a href="{{url('user/profile')}}" class="btn btn-default">Cancel</a>
|
||
|
<button type="submit" class="btn btn-primary"><i class="fa fa-save"></i>Change Pic</button>
|
||
|
</div>
|
||
|
</form>
|
||
|
|
||
|
@endsection
|