@extends('layouts.TF')

@section('content')
<div class="container">
    <div class="row">
        <div class="col-lg-12 d-flex flex-column">
            <div class="row flex-grow">
                <div class="col-12 grid-margin stretch-card">
                    <div class="card card-rounded">
                        <div class="card-body">
                            <div class="d-sm-flex justify-content-between align-items-start">
                                <div>
                                    <h4 class="card-title card-title-dash">Data Proposal</h4>
                                    {{-- <button type="button" class="btn btn-sm btn-primary btn-rounded btn-fw">Tambah</button> --}}
                                    {{-- <p class="card-subtitle card-subtitle-dash">Lorem ipsum dolor sit amet consectetur adipisicing elit
                  </p> --}}
                                </div>
                            </div>
                            <div class="d-sm-flex align-items-center mt-1 justify-content-between">
                            </div>
                            @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
                            <table>
                                <tbody>
                                    <tr>
                                        <td>Nama Dosen </td>
                                        <td>:{{ $registrasi->dosen->nama }}</td>
                                    </tr>

                                    {{-- <tr>
                                        <td>Status Penelitian </td>
                                        <td>: {{ $registrasi->status }}</td>
                                    </tr> --}}
                                </tbody>
                            </table>
                            <br>
                            <table class="table table-light">
                                <thead class="thead-light">
                                    <tr>
                                        <th>Nama Proposal</th>
                                        <th>Pendanaan</th>
                                        <th>File</th>
                                        <th>status</th>
                                        <th>Aksi</th>
                                    </tr>
                                </thead>
                                <tbody>

                                    <tr>
                                        <td>{{ $registrasi->jenispenelitian->nama_jenis }}</td>
                                        <td>{{ $registrasi->sumber_dana }}</td>
                                        <td><a href="{{ \Storage::url( $registrasi->file) }}">Download File</a></td>
                                        <td>{{ $registrasi->status }}</td>
                                        <td>

                                            <a href="{{ url('admin/proposal/update-status/'.$registrasi->id, []) }}"
                                                class="btn btn-primary btn-sm">Konfirmasi Proposal</a>
                                        </td>
                                    </tr>

                                </tbody>
                            </table>
                            <a href="{{ url('admin/proposal') }}" class="btn btn-primary btn-sm">Kembali</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>


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