@extends('layouts.app') @section('content')

Detalles del cupón

{{ csrf_field() }}
@if($cupon->tipo == '1') @else @endif
@if($cupon->tipo == '1') @else @endif
@if($cupon->estado == 'Sin usar') @else @endif

@if($cupon->ventas->count() > 0)

Ventas en donde se aplicó el cupón

@foreach($cupon->ventas as $venta) @endforeach
ID Total N° Productos Usuario Fecha ID cierre Acciones
#{{$venta->id}} $ {{number_format($venta->total)}} {{$venta->number_items()}}
{{$venta->user->name}}
{{date_format(date_create($venta->created_at), 'd/m/Y h:i A')}} @if($venta->id_cierre != null) #{{$venta->id_cierre}} @else N/A @endif

@endif
@endsection