@extends('dosen.layouts.DS')

@section('content')
    <div class="row">
        <div class="col-sm-12">
            <div class="home-tab">
                {{-- <div class="d-sm-flex align-items-center justify-content-between border-bottom">
          
          <div>
            <div class="btn-wrapper">
              <a href="#" class="btn btn-otline-dark align-items-center"><i class="icon-share"></i> Share</a>
              <a href="#" class="btn btn-otline-dark"><i class="icon-printer"></i> Print</a>
              <a href="#" class="btn btn-primary text-white me-0"><i class="icon-download"></i> Export</a>
            </div>
          </div>
        </div> --}}
                <div class="tab-content tab-content-basic">
                    <div class="tab-pane fade show active" id="overview" role="tabpanel" aria-labelledby="overview">
                        <div class="row">
                            <div class="col-lg-7 d-flex flex-column">
                                <div class="row flex-grow">
                                    <div class="col-md-6 col-lg-12 grid-margin stretch-card">
                                        <div class="card card-rounded"
                                            style="box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);">
                                            <div class="card-body">

                                                <div class="card card-rounded" style="padding-left: 10px;">
                                                    <div class="card-body">
                                                        {!! Form::model($objek, ['action' => $action, 'method' => $method, 'files' => true]) !!}

                                                        <div class="form-group">
                                                            <label for="nama">Nama Dosen</label>
                                                            {!! Form::text('nama', null, ['class' => 'form-control', 'style' => 'box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);']) !!}
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-lg-3">
                                                                <div class="form-group">
                                                                    <label for="gelar_depan">Gelar Depan</label>
                                                                    {!! Form::text('gelar_depan', null, ['class' => 'form-control', 'style' => 'box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);']) !!}
                                                                </div>
                                                            </div>
                                                            <div class="col-lg-3">
                                                                <div class="form-group">
                                                                    <label for="gelar_belakang">Gelar Belakang</label>
                                                                    {!! Form::text('gelar_belakang', null, ['class' => 'form-control', 'style' => 'box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);']) !!}
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-lg-6">
                                                                <div class="form-group">
                                                                    <label for="nip">NIP</label>
                                                                    {!! Form::text('nip', null, ['class' => 'form-control', 'style' => 'box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);']) !!}
                                                                </div>
                                                            </div>
                                                            <div class="col-lg-6">
                                                                <div class="form-group">
                                                                    <label for="nidn">NIDN</label>
                                                                    {!! Form::text('nidn', null, ['class' => 'form-control', 'style' => 'box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);']) !!}
                                                                </div>
                                                            </div>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-lg-6">
                                                                <div class="form-group">
                                                                    <label for="email">email</label>
                                                                    {!! Form::text('email', null, ['class' => 'form-control', 'style' => 'box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);']) !!}
                                                                </div>
                                                            </div>
                                                            <div class="col-lg-6">
                                                                <div class="row">
                                                                    <div class="col-lg-12">
                                                                        <div class="form-group">
                                                                            <label for="password">Password Baru
                                                                                <small>(Kosongkan apabila tidak ingin
                                                                                    mengubah password)</small></label>

                                                                            {!! Form::password('password', ['class' => 'form-control', 'style' => 'box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);']) !!}
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>



                                                        {!! Form::submit('Update Profil', ['class' => 'btn btn-primary']) !!}
                                                        <a href="{{ url('dosen/beranda') }}"
                                                            class="btn btn-warning">Kembali</a>
                                                        {!! Form::close() !!}
                                                    </div>
                                                </div>

                                                <div class="list align-items-center pt-3">
                                                    <div class="wrapper w-100">
                                                        <p class="mb-0">
                                                            {{-- <a href="#" class="fw-bold text-primary">Show all <i
                                                                    class="mdi mdi-arrow-right ms-2"></i></a> --}}
                                                        </p>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    

                                </div>
                            </div>
                            <div class="col-lg-3 d-flex flex-column">
                                @if (Session::has('pesan'))
                                    <div class="alert alert-info alert-dismissible">
                                        <a href="#" class="close" data-dismiss="alert">&times;</a>
                                        {{ Session::get('pesan') }}
                                    </div>
                                @endif
                            </div>

                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
