@extends('layouts.app') @section('title', 'Loss Prevention') @php $sevClass = ['low' => 'secondary', 'medium' => 'info', 'high' => 'warning', 'critical' => 'danger']; @endphp @section('content')
Actions that commonly hide theft: deleted or edited sales, price overrides, voids, cash shortages and stock write-offs. One event is not proof of theft; look for patterns and repeat offenders.
| Staff | Sales | Deleted | Edited | Price overrides | Voids | Discounts | Cash short | Stock removed | Other | Score | Per 100 sales |
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $c->user->name }} @if($c->flag) Investigate @endif | {{ number_format($c->sales_count) }} {{ formatCurrency($c->sales_total) }} |
{{ (int) $c->deleted }}@if($c->deleted) {{ formatCurrency($c->deleted_value) }}@endif |
{{ (int) $c->edited }}@if($c->edited_value > 0) −{{ formatCurrency($c->edited_value) }}@endif |
{{ (int) $c->price_overrides }} | {{ (int) $c->voids }} | {{ (int) $c->discounts }}@if($c->discounts) {{ formatCurrency($c->discount_value) }}@endif |
{{ $c->cash_short > 0 ? formatCurrency($c->cash_short) : '—' }} | {{ (int) $c->stock_removed }} | {{ (int) $c->other }} | {{ $c->score }} | {{ $c->score_per_100 ?? '—' }} |
| No sales or events in this period. | |||||||||||
| When | Severity | Event | Details | At risk | Staff | |
|---|---|---|---|---|---|---|
| {{ $event->created_at->format('M d, H:i') }} | {{ $event->severity }} | {{ $event->label }} | {{ $event->description }} | {{ $event->amount > 0 ? formatCurrency($event->amount) : '—' }} | {{ $event->user->name ?? '—' }} | @if($event->reviewed) @else @endif |
| No events found for this period. | ||||||