Support the ongoing development of Laravel.io →
Database Blade Forms
Last updated 1 year ago.
0

Can you format your code properly? It is difficult to read. Use 3 backticks to create and end a code block.

Last updated 8 years ago.
0

thomastkim said:

Can you format your code properly? It is difficult to read. Use 3 backticks to create and end a code block.

Done. Btw, the error is still showing even if a i dont write id_web

0
<a href="/web/del/{{$blog>id_web}}" 

Should be,

<a href="/web/del/{{$blog->id_web}}" 

your code is trying to compare $blog with a constant id_web. replace > with ->

Last updated 8 years ago.
0

Ignore that, it was a error when i copied the code. Now is like this and still giving the same error

         @foreach($blogs as $blog)
                                            <tr>
                                                <td class="v-align-middle"><span class="muted">{{$blog->nombre}}</span>
                                                </td>
                                                </td>
                                            </tr>
                                            @endforeach
                                        </tbody>
0

Vault404 said:

Ignore that, it was a error when i copied the code. Now is like this and still giving the same error

        @foreach($blogs as $blog)
                                           <tr>
                                               <td class="v-align-middle"><span class="muted">{{$blog->nombre}}</span>
                                               </td>
                                               </td>
                                           </tr>
                                           @endforeach
                                       </tbody>

can u post the error log? from the error page.

0

Vault404 said:

Here is a screenshot: http://s23.postimg.org/6ltadir4r/Captura_de_pantalla_2015_10_2...

It looks like the view related to the error has more content than you mentioned. please attach the view file, or copy the entire code from the view file mentioned in the error.

0

AthiKrishnan said:

Vault404 said:

Here is a screenshot: http://s23.postimg.org/6ltadir4r/Captura_de_pantalla_2015_10_2...

It looks like the view related to the error has more content than you mentioned. please attach the view file, or copy the entire code from the view file mentioned in the error.

This file use the same structure than other sections of this website, shows a list of the data from the table with two button to edit or delete the data.

@extends('layouts.admin')
@section('content')
    <!-- BEGIN BASIC FORM ELEMENTS-->

        <div class="row">
            <div class="col-md-12">
              <div class="grid simple">
                <div class="grid-title no-border">
                  <h4><span class="semi-bold">Chicas Webcam - Correos</span></h4>
                </div>
                <div class="grid-body no-border"> <br>
                <div class="row">
                  <div class="col-md-12">
                  <a href="/chicawebcam/add" class="btn btn-primary btn-cons">Añadir chica</a>
                  </div>
                </div>
                <div class="row">
                    <div class="col-md-12">
                        <div class="grid simple ">
                            <div class="grid-body no-border">
                                    <table class="table no-more-tables">
                                        <thead>
                                            <tr>
                                                <th style="width:38%">Descripción</th>
                                                <th style="width:15%">Opciones</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            @foreach($blogs as $blog)
                                            <tr>
                                                <td class="v-align-middle"><span class="muted">{{$blog->nombre}}</span>
                                                </td>
                                                <td class="v-align-middle">
                                                  <!--<a href="/chicawebcam/edit/{{$blog->id_webcam}}" class="btn btn-success btn-xs btn-mini">Editar</a>
                                                  <a href="/chicawebcam/del/{{$blog->id_webcam}}" class="btn btn-danger btn-xs btn-mini">Borrar</a>-->
                                                </td>
                                            </tr>
                                            @endforeach
                                        </tbody>
                                    </table>
                            </div>
                        </div>
                    </div>
                </div>
                </div>
              </div>
            </div>
          </div>

  <!-- END BASIC FORM ELEMENTS--> 
<script>
$(document).ready(function(){

    //Multiselect - Select2 plug-in
    $("#multi").select2();
    $("#source").select2();

});
</script>
@stop
0

try changing the comment section to blade. when you are using blade the comment section should be

{{-- This comment will not be present in the rendered HTML --}}

0

I didnt know this was the problem, this didnt give me any problem on the other blades.

Thanks!

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Vault404 vault404 Joined 22 Oct 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.