<form action="{{ route('pernyataan_instrument.update', ['pernyataan_instrument' => encrypt($pernyataan_instrument->id)]) }}" method="POST" enctype="multipart/form-data">
    @csrf
    @method('PUT')
    <div class="row">
        <div class="col-md-12">

        <div class="form-group">
                <label for="basicInput">Pernyataan Instrument</label>
                    <select class="form-control" name="id_sub_instrument">
                        <option></option>
                        @foreach ($sub_instrument as $item)
                        <option value="{{ $item->id }}" {{ isset($pernyataan_instrument['id_sub_instrument']) ? ($pernyataan_instrument['id_sub_instrument'] == $item->id ? 'selected' : '') : '' }}>{{ $item->instrument->instrument }} - {{ $item->sub_instrument }}</option>
                        @endforeach
                    </select>
            </div>
            <div class="form-group">
                <label for="basicInput">Pernyataan Sub Instrument</label>
                <textarea id="w3review" name="pernyataan_instrument" rows="4" class="form-control" placeholder="Pernyataan Instrument">{{ $pernyataan_instrument->pernyataan_instrument }}</textarea>
            </div>
        </div>
        
    </div>
  

    <button type="submit" class="btn btn-success">Simpan</button>
</form>
