Current File : //home/tradevaly/public_html/resources/views/backend/pages/profile/index.blade.php
@extends('backend.ayaan.master')
@push('title','Complete your profile')
@push('style')
    
@endpush

@section('content')
<div class="container-fluid">
  <div class="row">
    <div class="col-md-8 m-auto">
      <div class="card">
        <div class="card-header card-header-icon card-header-info">
          <h4 class="card-title">{{translate("Edit Profile -")}}
            <small class="category">{{translate("Complete your profile")}}</small>
          </h4>
        </div>
        <div class="card-body">
          <form action="{{ route('admin.profile.update') }}" method="post" enctype="multipart/form-data">
            @csrf
            @method('put')
            <div class="row">
              <div class="col-md-12 mb-4">
                <div class="form-group">
                  <input type="text" class="form-control" value="{{Auth::guard('admin')->user()->email}}" disabled>
                </div>
              </div>
              <div class="col-md-12 mb-4">
                <div class="form-group">
                  <input type="text" name="name" class="form-control" value="{{Auth::guard('admin')->user()->name}}">
                </div>
              </div>
              <div class="col-md-12 mb-4">
                <div class="form-group">
                  <input type="text" name="phone" class="form-control" value="{{Auth::guard('admin')->user()->phone}}">
                </div>
              </div>
              <div class="col-md-12 mb-4">
               <div class="form-group">
                    @if (Auth::guard('admin')->user()->image=="")
                    <img style="width:100px; margin-bottom:20px;" src="{{asset('assets/backend/img/default-avatar.png')}}" alt="...">
                        @else
                    <img style="width:100px; margin-bottom:20px;" src="{{asset('storage/images/admin/avatar/'.Auth::guard('admin')->user()->image)}}" alt="...">
                    @endif
                    <input type="file" name="image" class="form-control">
                </div>
              </div>
            </div>
            <button type="submit" class="btn btn-success pull-right">{{translate("Update")}}</button>
            <div class="clearfix"></div>
          </form>
        </div>
      </div>
    </div>
  </div>
</div>
@stop

@push('script')
   
@endpush