Commit 3c25b478 by Pancholin

ortografia

parent 9eabfbf3
...@@ -140,11 +140,11 @@ class AdminProductController extends Controller ...@@ -140,11 +140,11 @@ class AdminProductController extends Controller
return return
"<p class='mb0'>Nombre: <b>$product->name</b></p>". "<p class='mb0'>Nombre: <b>$product->name</b></p>".
"<p class='mb0'>Slug: <b>$product->slug</b></p>". "<p class='mb0'>Slug: <b>$product->slug</b></p>".
"<p class='mb0'>Categoria: <b>".$product->category->name."</b></p>". "<p class='mb0'>Categoría: <b>".$product->category->name."</b></p>".
"<p class='mb0'>Fecha creación: <b>".$product->created_at->format('d/m/Y')."</b></p>"; "<p class='mb0'>Fecha de creación: <b>".$product->created_at->format('d/m/Y')."</b></p>";
}) })
->addColumn('form', function ($product) { ->addColumn('form', function ($product) {
return "<form method='POST' action='".route('admin.product_resources.products.destroy',$product->id)."'>". return "<center><form method='POST' action='".route('admin.product_resources.products.destroy',$product->id)."'>".
"<input name='_method' type='hidden' value='DELETE' class='has-value'>". "<input name='_method' type='hidden' value='DELETE' class='has-value'>".
csrf_field() . csrf_field() .
"<button class='btn btn-danger btn-xs button-mb' onclick='return confirm();' type='submit'>". "<button class='btn btn-danger btn-xs button-mb' onclick='return confirm();' type='submit'>".
...@@ -153,7 +153,7 @@ class AdminProductController extends Controller ...@@ -153,7 +153,7 @@ class AdminProductController extends Controller
"<a href='".route('show.product_resource', $product->slug)."' class='btn btn-xs info button-mb' target='new'>". "<a href='".route('show.product_resource', $product->slug)."' class='btn btn-xs info button-mb' target='new'>".
"<i class='fas fa-eye icon-special-size'></i>Ver</a>". "<i class='fas fa-eye icon-special-size'></i>Ver</a>".
"<br><a href='".route('admin.product_resources.products.edit', $product->id)."' class='btn btn-xs accent mb0'>". "<br><a href='".route('admin.product_resources.products.edit', $product->id)."' class='btn btn-xs accent mb0'>".
"<i class='fas fa-edit icon-special-size'></i>Editar</a>"; "<i class='fas fa-edit icon-special-size'></i>Editar</a></center>";
}) })
->rawColumns(['main', 'description', 'features', 'specifications', 'form']) ->rawColumns(['main', 'description', 'features', 'specifications', 'form'])
->make(); ->make();
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<div class='box'> <div class='box'>
<div class='box-header dark'> <div class='box-header dark'>
<h2> <h2>
Listado de Categorias de productos Listado de Categorías de productos
<span> <span>
<a aria-expanded='false' class='btn btn-xs btn-info button-ml' data-toggle='collapse' href='#agregarCategoria'> <a aria-expanded='false' class='btn btn-xs btn-info button-ml' data-toggle='collapse' href='#agregarCategoria'>
<i class='fas fa-plus'></i> <i class='fas fa-plus'></i>
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
</td> </td>
<td> {{$category->description}}</td> <td> {{$category->description}}</td>
<td> {{$category->products()->count()}}</td> <td> {{$category->products()->count()}}</td>
<td> <td class="text-center">
{!! Form::open(['route'=> ['admin.product_resources.products.destroy',$category->id],'method'=>'DELETE'])!!} {!! Form::open(['route'=> ['admin.product_resources.products.destroy',$category->id],'method'=>'DELETE'])!!}
<button class='btn btn-danger btn-xs button-mb' onclick="return confirm('¿Estás seguro de eliminar este elemento?');" type='submit'> <button class='btn btn-danger btn-xs button-mb' onclick="return confirm('¿Estás seguro de eliminar este elemento?');" type='submit'>
<i class='fas fa-trash-alt icon-special-size'></i> <i class='fas fa-trash-alt icon-special-size'></i>
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
<table class='table'> <table class='table'>
<tr> <tr>
<th>#</th> <th>#</th>
<th>Informacion</th> <th>Información</th>
<th>Valores</th> <th>Valores</th>
<th></th> <th></th>
</tr> </tr>
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
Estatus: <b>{{$extra->active ? "Activo" : "Inactivo"}}</b> Estatus: <b>{{$extra->active ? "Activo" : "Inactivo"}}</b>
</td> </td>
<td> Opciones: <br><b>{{$extra->values != null ? $extra->values : "No aplica"}}</b></td> <td> Opciones: <br><b>{{$extra->values != null ? $extra->values : "No aplica"}}</b></td>
<td> <td class="text-center">
{!! Form::open(['route'=> ['admin.product_resources.extra-fields.destroy',$extra->id],'method'=>'DELETE'])!!} {!! Form::open(['route'=> ['admin.product_resources.extra-fields.destroy',$extra->id],'method'=>'DELETE'])!!}
<button class='btn btn-danger btn-xs button-mb' onclick="return confirm('¿Estás seguro de eliminar este elemento?');" type='submit'> <button class='btn btn-danger btn-xs button-mb' onclick="return confirm('¿Estás seguro de eliminar este elemento?');" type='submit'>
<i class='fas fa-trash-alt icon-special-size'></i> <i class='fas fa-trash-alt icon-special-size'></i>
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link block" href="" data-toggle="tab" data-target="#tab-3"> <a class="nav-link block" href="" data-toggle="tab" data-target="#tab-3">
<h6>Galeria de imagénes</h6> <h6>Galería de imagénes</h6>
</a> </a>
</li> </li>
</ul> </ul>
...@@ -124,7 +124,7 @@ ...@@ -124,7 +124,7 @@
<div class="tab-pane" id="tab-3"> <div class="tab-pane" id="tab-3">
<div class='box'> <div class='box'>
<div class='box-header dark'> <div class='box-header dark'>
<h2>Galeria de imagenes</h2> <h2>Galería de imágenes</h2>
</div> </div>
<div class='box-body'> <div class='box-body'>
<div class="row"> <div class="row">
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
{!! Form::open(['route'=> ['admin.product_resources.files.store', $product->id], 'method' => 'POST', 'files'=>'true', 'id' => 'my-dropzone' , 'class' => 'dropzone']) !!} {!! Form::open(['route'=> ['admin.product_resources.files.store', $product->id], 'method' => 'POST', 'files'=>'true', 'id' => 'my-dropzone' , 'class' => 'dropzone']) !!}
<div class="dz-message" style="height:200px;"> <div class="dz-message" style="height:200px;">
Arrastra las imagenes aquí Arrastra las imágenes aquí.
</div> </div>
<div class="dropzone-previews"></div> <div class="dropzone-previews"></div>
<button type="submit" class="btn btn-success" id="submitFiles">Save</button> <button type="submit" class="btn btn-success" id="submitFiles">Save</button>
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
</div> </div>
<div class='col-md-6'> <div class='col-md-6'>
<div class="form-group" > <div class="form-group" >
{!! Form::label('category_id', 'Categoria', ['class'=>'control-label'])!!} {!! Form::label('category_id', 'Categoría', ['class'=>'control-label'])!!}
{!! Form::select('category_id', $categories, null, ["class"=>"form-control", "required"=>"required"]) !!} {!! Form::select('category_id', $categories, null, ["class"=>"form-control", "required"=>"required"]) !!}
</div> </div>
</div> </div>
......
...@@ -31,8 +31,8 @@ ...@@ -31,8 +31,8 @@
<tr> <tr>
<th>#</th> <th>#</th>
<th>Producto</th> <th>Producto</th>
<th>Descripcion</th> <th>Descripción</th>
<th>Caracteristicas</th> <th>Características</th>
<th>Especificaciones</th> <th>Especificaciones</th>
<th></th> <th></th>
</tr> </tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment