@extends('layouts.Layout')
@section('content')
<div id="myModal" class="modal fade">
  <div class="modal-dialog">
    <div class="modal-content">
    <div class="row">
        <div class="col-md-12">
            <h1>Mengubah Data pen</h1>
        </div>
    </div>
    <form class="" action="{{route('Daftar.update',$pen->id)}}" method="post">
        <input name="_method" type="hidden" value="PATCH">
        {{csrf_field()}}
        <div class="form-group{{($errors->has('id')) ? $errors->first('id') : ''}}">
            {{$pen->id}}
        <div class="form-group{{($errors->has('status')) ? $errors->first('status') : ''}}">
            <select name="status" value="{{$pen->status}}">
              <option>Lulus</option>
              <option>Tidak Lulus</option>
              <option> </option>
            </select>
        </div>
        <div class="form-group">
            <input type="submit" class="btn btn-primary" value="save">
        </div>
    </form>
    </div>
    </div>
    </div>

@stop