
<?php $__env->startSection('content'); ?>
<main id="main" class="main">

    <div class="pagetitle">
      <h1>Profile</h1>
      <nav>
        <ol class="breadcrumb">
          <li class="breadcrumb-item"><a>Dashboard</a></li>
          <li class="breadcrumb-item active">Profile</li>
        </ol>
      </nav>
    </div><!-- End Page Title -->

    <section class="section dashboard">
      <?php if(Session::get('msg')): ?>
      <div class="alert alert-success alert-dismissible fade show" role="alert">
          <i class="bi bi-check-circle me-1"></i>
                <?php echo e(Session::get('msg')); ?>

          <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
      </div>
      <?php endif; ?>

      <div class="row">

        <!-- Home Slider -->
        <div class="col-lg-6">

          <div class="card">
            <div class="card-body">
              <h5 class="card-title">Foto Profil</h5>

              <!-- Vertical Form -->
              <form class="row g-3" method="POST" action="/dashboard/profile/update" enctype="multipart/form-data">
                <?php echo csrf_field(); ?>

                <div class="col-12">

                  <img id="preview-image" src="/<?php echo e(Session::get('user')->image); ?>" style="width: 250px">

                  <!-- <label for="video" class="form-label">Foto Profil</label> -->
                  <p style="color: orange; font-size: 10px">Ukuran Maks 500kb & Ukuran 250px x 250px</p>
                  <input class="form-control" type="file" id="image_profile" name="image_profile">
                </div>
                <div>
                  <button type="submit" class="btn btn-primary">Update</button>
                </div>
              </form><!-- Vertical Form -->

            </div>
          </div>

        </div>


        <div class="col-lg-6">

          <div class="card">
            <div class="card-body">
              <h5 class="card-title">Profile</h5>

              <!-- Vertical Form -->
              <form class="row g-3" method="POST" action="/dashboard/profile/update">
                <?php echo csrf_field(); ?>

                <div class="col-md-6">
                  <div class="form-floating">
                    <input type="text" class="form-control" id="floatingName" placeholder="Nama Siswa" name="name" value="<?php echo e(Session::get('user')->name); ?>">
                    <label for="floatingName">Nama</label>
                  </div>
                </div>
                <div class="col-md-6">
                  <div class="form-floating">
                    <input type="text" class="form-control" id="floatingEmail" placeholder="Your Email" name="email" value="<?php echo e(Session::get('user')->email); ?>">
                    <label for="floatingEmail">Username</label>
                  </div>
                </div>
                <div class="col-md-4">
                  <div class="form-floating">
                    <input type="text" class="form-control" id="floatingPassword" placeholder="Tempat Lahir" name="birthplace" value="<?php echo e(Session::get('user')->birthplace); ?>">
                    <label for="floatingPassword">Tempat</label>
                  </div>
                </div>
                <div class="col-md-4">
                  <div class="form-floating">
                    <input type="date" class="form-control" id="floatingPassword" placeholder="Tanggal Lahir" name="birthdate" value="<?php echo e(Session::get('user')->birthdate); ?>">
                    <label for="floatingPassword">Tanggal Lahir</label>
                  </div>
                </div>
                <div class="col-md-4">
                  <div class="form-floating">
                    <input type="number" class="form-control" id="floatingPassword" placeholder="Tempat Lahir" name="usia" value="<?php echo e(Session::get('user')->usia); ?>">
                    <label for="floatingPassword">Usia</label>
                  </div>
                </div>
                <div class="col-md-12">
                  <div class="form-floating">
                    <input type="text" class="form-control" id="floatingPassword" placeholder="Tempat Lahir" name="address" value="<?php echo e(Session::get('user')->address); ?>">
                    <label for="floatingPassword">Alamat</label>
                  </div>
                </div>
                <div class="col-md-12">
                  <div class="form-floating">
                    <input type="text" class="form-control" id="floatingPassword" placeholder="Tempat Lahir" name="password" value="<?php echo e(Session::get('user')->password); ?>">
                    <label for="floatingPassword">Password</label>
                  </div>
                </div>
                <div>
                  <button type="submit" class="btn btn-primary" >Update</button>
                </div>
              </form><!-- Vertical Form -->

            </div>
          </div>

        </div>

      </div>
    </section>

  </main><!-- End #main -->
<?php $__env->stopSection(); ?>
<?php echo $__env->make('dashboard.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/tpsa4296/public_html/tpscmalang/resources/views/dashboard/profile.blade.php ENDPATH**/ ?>