@extends('adminlte::page') @section('title', 'Productos') @section('css') @endsection @section('content_header')

Dashboard

@endsection @section('content')

Productos

Agregar nuevo producto
{{-- $products->links() --}} {{ $products->appends(['page' => $page ?? 1])->links() }}
@forelse($products as $key => $product) {{-- Check this after, remember the offerts now is in another table --}} {{-- floor es redondear --}} {{-- Nota: Si se llega a dar formato el codigo, deben formatearlo asi @if (floor($product->price) == $product->price).00 @endif Si se deja diferente se vera un espacio entre los ceros y el precio, se ve feo --}} @if ($product->offert) {{-- Actions --}} @empty @endforelse
Nombre Modelo Inventario Precio Categorías Marca Detalles Imagen Borrador

Actualizado por ultima vez: {{ $product->updated_at }}

{{-- Change to the default details product page in the frontend --}} @if (!$product->draft) Ver en la tienda @endif Modificar producto Borrar producto
@csrf @method('DELETE')
@if ($product->images->count() == 0) Agregar imagenes @else Modificar imagenes Borrar imagenes @endif
Modificar inventario @if (!$product->offert) Hacer un descuento @endif Relacionar productos @if ($product->draft) Publicar Producto @else Cambiar a borrador @endif
@csrf
Sin productos, agrege una nueva
{{-- $products->links() --}} {{ $products->appends(['page' => $page ?? 1])->links() }}
{{-- Show products to duplicate --}} {{-- Add images in a product --}} {{-- Mod images in a product --}} {{-- drop images in a product --}} {{-- Resupply inventory --}} {{-- Show details from the product --}} {{-- Show form to relationate products --}} {{-- Make a discount in a product --}} {{-- Show all offerts --}} @endsection @section('js') @vite('resources/js/products/linkProducts.js') @vite('resources/js/products/dropProducts.js') @vite('resources/js/products/productDetails.js') @vite('resources/js/products/makeOffer.js') @vite('resources/js/products/addProductImages.js') @vite('resources/js/products/modProductImages.js') @vite('resources/js/products/dropProductImages.js') @vite('resources/js/products/resupplyInventory.js') @vite('resources/js/products/makeProductInBase.js') @vite('resources/js/products/showOfferts.js') @vite('resources/js/products/changeStatus.js') {{-- Quiero intentar hacer esto mas adelante, seria una buena mejora hacerlo mas rapido usando datatables --}} @endsection