@extends('admin.layouts.app') @section('content')
Margen Promedio
@php $marginColor = $avgMargin < 0 ? 'danger' : ($avgMargin < 15 ? 'warning' : 'success'); @endphpPublicaciones con Perdida
Margen Saludable (>15%)
| # | Producto | Vendidos | Precio ML | Margen |
|---|---|---|---|---|
| {{ $index + 1 }} |
{{ $pub->titu_publ }}
{{ $pub->ml_id }}
|
{{ number_format($pub->cant_vend, 0, ',', '.') }} | ${{ number_format($pub->prec_publ, 2, ',', '.') }} | @if($pub->cost_snapshot > 0) @php $m = floatval($pub->computed_margin); $mColor = $m < 0 ? 'danger' : ($m < 15 ? 'warning' : 'success'); @endphp {{ number_format($m, 1, ',', '.') }}% @else — @endif |
| Sin ventas registradas | ||||
|
#{{ $order->order_id }} {{ $order->buyer_nik ?? 'N/A' }} |
{{ $order->mla_nomb }} {{ $order->mla_apel }} | ${{ number_format($order->o_tot_amou, 0, ',', '.') }} | {{ $order->o_status ?? 'N/A' }} |
| No hay ventas registradas | |||
|
"{{ $question->pregunta }}"
{{ $question->nick_name ?? 'Anonimo' }} —
{{ $question->titu_publ ?? '' }} —
{{ $question->created_at ? $question->created_at->diffForHumans() : '' }}
|
| No hay preguntas pendientes |