<?php $__env->startSection('content'); ?>
<div class="container">
            <div class="row mb-3 mt-3"> 
                    <div class="col-6">  
                        <button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#DatiModal"> 
                            Pievienot vārdu
                        </button>
                    </div>
            </div>
            <div class="row">
                <table id="datiTable" class="table">
                    <thead>
                    <tr>
                        <th scope="col">Vārds</th>
                        <th scope="col">Uzvārds</th>
                        <th scope="col">Custom Data</th>
                        <th scope="col">Darbības</th>

                    </tr>
                    </thead>

                </table>
            </div>
        </div>
<!-- Modal -->
<div class="modal fade" id="DatiModal" tabindex="-1" aria-labelledby="DatiModalLabel" aria-hidden="true"> 
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="DatiModalLabel">Jauns</h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <form>

                        <input type="hidden" name="current_dati_id" id="current_dati_id" value="">
                        <div class="mb-3">
                            <label for="name" class="form-label">Vārds</label>
                            <input type="text" class="form-control"name="name" id="name" aria-describedby="name">
                        </div>
                        <div class="mb-3">
                            <label for="surname" class="form-label">Uzvārds</label>
                            <input type="text" class="form-control" name="surname" id="surname">
                        </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Aizvērt</button>
                <button id="DatiModal-saveBtn" type="button" class="btn btn-primary">Saglabāt</button> 
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>



<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\laragon\www\prakses\prakses\resources\views/welcome.blade.php ENDPATH**/ ?>