Problem with modal window (EDIT)

Posted 10 months ago by BarbaraTackaBa

I have problem with modal window (on edit). It won't show/open. Here is my code.


 <tbody class="text-center">
                            <?php $i=1; ?>
                            @foreach($directories as $item)
                                <td scope="row">{{ $i }}</td>
                                <td>{{ $item->name }}</td>
                                <td>{{ $item->surname }}</td>
                                <td>{{ $item->email }}</td>
                                <td>{{ $item->phone }}</td>
                                <td>{{ $item->town }}</td>
                                <td>{{ $item->country }}</td>
                                <td>{{ $item->gender }}</td>
                                <td>{{ $item->status }}</td>
                                <td><a href="#editDirectory/{{ $item->id}}" data-target="#editDirectory" data-toggle="modal"><img src="{{ asset('storage/admin/edit.png') }}" height=23 width=23 class="mx-auto d-block"/></a></td>
                                <td><a href="#deleteDirectory{{ $item->id}}" data-toggle="modal" class="text-center"><img src="{{ asset('storage/admin/delete.png') }}" height=23 width=23 class="mx-auto d-block"/></a></td>
                             <?php $i++; ?>
            <div class="modal fade bd-example-modal-md" id="editDirectory" tabindex="-1" role="dialog" aria-labelledby="editDirectoryModalLabel" aria-hidden="true" data-backdrop="false">
              <div class="modal-dialog modal-md" role="document">
                <div class="modal-content">

                {!! Form::open (['method' => 'POST', 'action' => ['[email protected]',$directories->id]]) !!}
                {!! csrf_field() !!}

                  <div class="modal-header">
                    <h5 class="modal-title" id="editDirectoryModalLabel">Ažuriranje novog korisnika</h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                      <span aria-hidden="true">×</span>
                  <div class="modal-body">
                {!! Form::hidden('_method','PUT')!!}
                {!! Form::close() !!}

Please sign in or create an account to participate in this conversation.