@extends('admin.layouts.app') @section('title') Admin Profile @endsection @section('mainContent')

Profile

{!! Form::open([ 'route' => 'admin.updateProfileDetail', 'files' => true ]) !!}
Profile update
@if(!empty(\Auth::user()->avatar)) avatar) : url('storage/default.png') !!}" alt="user-img" class="img-circle"> @else user-img @endif
{{ $errors->has('avatar') ? "".$errors->first('avatar')."" : '' }}
{!! Form::file('avatar',['id' => 'hidden','accept'=>'image/*','class'=>'user_profile_pic']) !!}
{{ $errors->has('name') ? "".$errors->first('name')."" : '' }}
{{ $errors->has('email') ? "".$errors->first('email')."" : '' }}
{!! Form::close() !!}
{!! Form::open([ 'route' => 'admin.updatePassword', 'files' => true ]) !!}
Change Password
{{ $errors->has('old_password') ? "".$errors->first('old_password')."" : '' }}
{{ $errors->has('password') ? "".$errors->first('password')."" : '' }}
{{ $errors->has('password_confirmation') ? "".$errors->first('password_confirmation')."" : '' }}
{!! Form::close() !!}
@endsection @section('styles') @endsection @section('scripts') @endsection