@extends('layout') @section('title', 'Historial de ventas') @section('content')
@forelse($sales as $sale) @empty @endforelse
FolioSucursalFecha y horaProductosTotalAcumulado
{{ $sale->folio }} @if($sale->historical)Inicial@endif{{ $sale->branch }} {{ $sale->day }} {{ $sale->time }}
Ver productos
    @foreach(json_decode($sale->products, true) as $product)
  • {{ $product['quantity'] }} × {{ $product['name'] }} · {{ \App\Notifications::money($product['price']) }}
  • @endforeach
{{ \App\Notifications::money($sale->total) }}{{ \App\Notifications::money($sale->accumulated) }}
Todavía no hay ventas registradas.
@include('pagination', ['pages' => $sales]) @endsection