Current File : /home/tradevaly/new.tradevaly.com.bd/resources/views/user/pages/profile.blade.php
@extends('user.ayaan.master')

@push('style')
    
@endpush

@section('content')
<div class="container-fluid">
  <div class="row">
    <div class="col-md-8">
      <div class="card">
        <div class="card-header card-header-icon card-header-info">
          <h4 class="card-title">Edit Profile -
            <small class="category">Complete your profile</small>
          </h4>
        </div>
        <div class="card-body">
          <form action="{{route('user.profile')}}" method="post" enctype="multipart/form-data">
            @csrf
            <div class="row">
              <div class="col-md-8 mb-4">
                <div class="form-group">
                  <label class="bmd-label-floating">Email</label>
                  <input type="text" class="form-control" name="email" value="{{Auth::user()->email}}">
                </div>
              </div>
              <div class="col-md-8 mb-4">
                <div class="form-group">
                <label class="bmd-label-floating">Name</label>
                  <input type="text" name="name" class="form-control" value="{{Auth::user()->name}}">
                </div>
              </div>
               <div class="col-md-12">
                  <div class="form-group">
                    <label class="bmd-label-floating">Profile Picture</label>
                    <br/>
                    @if(Auth::guard('web')->user()->image != 'image.jpg') <img style="width:50px; border-radius:10%;" src="{{asset('storage/images/user/avatar/'.Auth::guard('web')->user()->image)}}"> @endif
                    <input type="file" class="form-control" name="image">
                  </div>
                </div>
              </div>
            </div>
            <button type="submit" class="btn btn-success pull-right">Update Profile</button>
            <div class="clearfix"></div>
          </form>
        </div>
      </div>
    </div>
  </div>
</div>
@stop

@push('script')
   
@endpush