@extends('layouts.main')
@section('content')
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <div class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1 class="m-0">Pengguna</h1>
          </div><!-- /.col -->
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item">Admin</a></li>
              <li class="breadcrumb-item active">Pengguna</li>
            </ol>
          </div><!-- /.col -->
        </div><!-- /.row -->
      </div><!-- /.container-fluid -->
    </div>
    <!-- /.content-header -->

    <!-- Main content -->
    <section class="content">
        <div class="container-fluid">
          <div class="row">
            <div class="col-12">
                <div class="card card-primary card-outline">
                    <div class="card-body box-profile">
      
                      <h3 class="profile-username text-center">{{ $d->user }}</h3>
      
                      <p class="text-muted text-center">{{ $d->name }}</p>
                      <a href="#" class="btn btn-info btn-block" data-toggle="modal" data-target="#modalEdit{{ $d->id }}"><b>Ubah Profil</b></a>
                      @include('admin.editprofil')
                    </div>
                    <!-- /.card-body -->
                  </div>
            </div>
            <!-- /.col -->
          </div>
          <!-- /.row -->
        </div>
        <!-- /.container-fluid -->
      </section>
    <!-- /.content -->
  </div>
@endsection
@section('scripts')
    @if($message = Session::get('failed'))
    <script>
    Swal.fire({
        icon: "error",
        title: "Oops...",
        text: "{{ $message }}",
    });
    </script>
    @endif

    @if($message = Session::get('success'))
    <script>
    Swal.fire({
        icon: "success",
        // title: "Oops...",
        text: "{{ $message }}",
    });
    </script>
    @endif
@endsection