@extends('layouts.app') @section('title', 'Productos y Servicios — ' . \App\Models\Setting::get('app_name', 'TI Manager')) @section('content')
@if($products->count() > 0)
{{-- Barra de Acciones Múltiples --}}
productos seleccionados
@csrf
@foreach($products as $product) @endforeach
Producto Costo Margen Precio Venta Última Sync Acciones
@if($product->image_url) {{ $product->name }} @else
@endif
{{ $product->name }}
@if($product->category) {{ $product->category->name }} @endif @if($product->source_url) @else
Manual
@endif
${{ number_format($product->cost_price, 2) }} +{{ $product->markup_percentage }}% ${{ number_format($product->price, 2) }} {{ $product->last_sync_at ? $product->last_sync_at->diffForHumans() : 'Nunca' }}
@if($product->source_url)
@csrf
@endif
@csrf @method('DELETE')
{{-- VISTA TARJETAS: Grid responsivo --}}
@foreach($products as $product)
@if($product->image_url) {{ $product->name }} @else
@endif
{{ Str::limit($product->name, 40) }} @if($product->category) {{ $product->category->name }} @endif
Costo ${{ number_format($product->cost_price, 2) }}
Margen +{{ $product->markup_percentage }}%
Precio Venta ${{ number_format($product->price, 2) }}
@if($product->source_url) @endif
@if($product->source_url)
@csrf
@endif Editar
@csrf @method('DELETE')
@endforeach
@if($products->hasPages() || request('per_page'))
{{ $products->links() }}
@if(request('search')) @endif @if(request('category_id')) @endif @if(request('store_domain')) @endif Mostrar:
@endif @else

No hay productos registrados

Aún no tienes productos o servicios en el catálogo.

Crear Producto
@endif
@include('products.partials.import_store_modal') @include('products.partials.export_modal') @endsection