@extends('layouts.app') @section('titulo', 'Ofertas') @section('contenido')
Administra descuentos, promociones y precios especiales.
Total ofertas
{{ $ofertas->total() }}
Activas
{{ $ofertas->where('estado', 1)->count() }}
Inactivas
{{ $ofertas->where('estado', 0)->count() }}
Prioridad
{{ $ofertas->max('prioridad') ?? 0 }}
Las ofertas activas podrán ser consultadas automáticamente desde el POS.
| Oferta | Tipo | Valor | Vigencia | Prioridad | Acumulable | Estado | Acciones |
|---|---|---|---|---|---|---|---|
|
{{ $oferta->nombre }}
@if($oferta->descripcion)
{{ Str::limit($oferta->descripcion, 90) }}
@endif
|
{{-- TIPO --}}
@switch($oferta->tipo) @case('porcentaje') Porcentaje @break @case('monto') Monto @break @case('precio_especial') Precio especial @break @default {{ $oferta->tipo }} @endswitch | {{-- VALOR --}}@if($oferta->tipo === 'porcentaje') {{ number_format($oferta->valor, 2) }}% @elseif($oferta->tipo === 'monto') S/ {{ number_format($oferta->valor, 2) }} @else S/ {{ number_format($oferta->valor, 2) }} @endif | {{-- VIGENCIA --}}
@if($oferta->fecha_inicio || $oferta->fecha_fin)
|
{{-- PRIORIDAD --}}
{{ $oferta->prioridad }} | {{-- ACUMULABLE --}}
@if($oferta->acumulable)
|
{{-- ESTADO --}}
@if($oferta->estado) Activa @else Inactiva @endif | {{-- ACCIONES --}}
{{-- VER CONDICIONES --}}
{{-- ACTIVAR / DESACTIVAR --}}
{{-- ELIMINAR --}}
|
Crea tu primera oferta para comenzar.
Detalle de oferta
Tipo
Valor
Descripción
Prioridad
Acumulable
Vigencia