@extends('layouts.admin')

@section('content')

            <main class="content">
				<div class="container-fluid p-0">

					<div class="row mb-2 mb-xl-3">
						<div class="col-auto d-none d-sm-block">
							<h3>Admin Profile</h3>
						</div>

					</div>
				
@include('components.admin.error-message')
			 
<div class="row">
    <div class="col-md-4 col-xl-3">
        <div class="card mb-3">
            <div class="card-header">
                <h5 class="card-title mb-0">Admin Details</h5>
            </div>
            <div class="card-body text-center">
                <img src="{{secure_url('5856.jpg')}}" alt="{{$user->name}}" class="img-fluid rounded-circle mb-2" width="128" height="128" />
                <h5 class="card-title mb-0">Name: {{$user->name}}</h5>
                <div class="text-muted mb-2">Username: {{$user->username}}</div>
                <div class="text-muted mb-2">Email: {{$user->email}}</div>

         
            </div>
            
            
        </div>
    </div>

    <div class="col-md-8 col-xl-9">
        <div class="card">
            <div class="my-3 mx-3 d-flex justify-content-end">
								
										<a role="button" href="{{route('admin.password')}}" class="btn btn-outline-primary"><i class="fa fa-key"></i> Password</a>
									
									
									</div>
            <div class="card-header">
                <h5 class="card-title mb-0">User Wallet</h5>
            </div>
            <div class="card-body h-100">
               <form action="{{route('admin.profile.update')}}" method="POST" enctype="multipart/form-data">
    @csrf
    <div class="row">
      
        <div class="col-xxl-12 col-lg-12">
            <div class="form-group py-2">
                <label for="name" class="required">Name</label>
                <input class="form-control" type="text" name="name" value="{{$user->name}}" required="" id="name" />
            </div>
            <div class="form-group py-2">
                <label for="email" class="required">Email</label>
                <input class="form-control" type="email" name="email" value="{{$user->email}}" required="" id="email" />
            </div>
        </div>
    </div>
    <button type="submit" class="btn btn-primary ">Submit</button>
</form>

            </div>
        </div>
    </div>
</div>



				</div>
			</main>


@endsection
