@extends('layouts.master') @section('title', 'Mesas') @section('content')

Mesas a Trasnferir {{ $evento->nombre }}

{{ Html::linkRoute('mozo.eventos', 'Volver', null, array('class' => 'btn btn-outline-secondary btn-block')) }}
@if(count($mesas)) @foreach ($mesas as $key => $mesa)

{{ $mesa->nombre }}

@if(count($mesa->comandas($evento->id)))
@endif
@if(count($mesa->comandasCerradas($evento->id))) @foreach ($mesa->comandasCerradasGrupos($evento->id) as $keyHash => $grupo) @foreach ($grupo as $key => $comanda) @if($comanda->descuento) @else @endif @endforeach
Hora Por Producto Descuento Cantidad Subtotal
{{ date('H:i', strtotime($comanda->created_at)) }} {{ @$comanda->user->name }} {{ $comanda->producto->nombre }}{{ $comanda->descuento * 100 }}%{{ $comanda->cantidad }} ${{ number_format($comanda->total, 0, '', '.') }}
Total {{ @$comanda->medio->nombre }} {{ $mesa->cantidadGrupo($keyHash) }} ${{ number_format($mesa->totalGrupo($keyHash), 0, '', '.') }}

@endforeach @endif @if(count($mesa->comandas($evento->id))) @foreach ($mesa->comandas($evento->id) as $key => $comanda) @endforeach
Hora Por Producto Cantidad Subtotal Borrar
{{ date('H:i', strtotime($comanda->created_at)) }} {{ @$comanda->user->name }} {{ $comanda->producto->nombre }} {{ $comanda->cantidad }} ${{ number_format($comanda->total, 0, '', '.') }}
Total Pendinete Cierre {{ $mesa->cantidad($evento->id) }} ${{ number_format($mesa->total($evento->id), 0, '', '.') }}
@endif
@endforeach @endif
@foreach ($mesas as $key => $mesa) @if(count($mesa->comandas($evento->id))) @endif @endforeach @endsection @section('javascript') @endsection