@extends('layouts.app', ['title' => 'Mesas/Comandas']) @section('css') @endsection @section('content')
@method('delete') @csrf
{!!Form::open() ->post() ->route('frontbox.store')->id('form-comanda') !!}
Mesas/Comandas
{!! Form::text('pesquisa_comanda', 'Busca comanda ou mesa')->attrs(['class' => 'not-enter']) !!}
Cárdapio
Categorias
@foreach($categorias as $c) @endforeach
{!! Form::tel('quantidade', 'Quantidade')->attrs(['class' => 'qtd not-enter']) !!}
{!! Form::tel('valor_unitario', 'Valor Unitário')->attrs(['class' => 'moeda value_unit not-enter']) !!}

{!! Form::text('pesquisa', 'Busca rápida de produtos')->attrs(['class' => '']) !!}
@foreach($produtos as $p)
{{ $p->estoqueAtual() }} {{ $p->unidade }} @if($p->precoComPromocao()) @endif {{ $p->nome }}

{{ substr($p->nome, 0, 30) }}

@if($p->precoComPromocao())

R$ {{ __moeda($p->precoComPromocao()->valor) }}

@else @if(isset($lista_id) && $lista_id) @if($p->itemListaView($lista_id))

R$ {{ __moeda($p->itemListaView($lista_id)->valor) }}

@endif @else

R$ {{ __moeda(__valorProdutoLocal($p, $local_id)) }}

@endif @endif
@endforeach
{!! $produtos->links() !!}
PRODUTOS DA MESA/COMANDA @if($numeroComanda) {{ $numeroComanda }} @endif
@if($comanda != null) @if(sizeof($comanda->itens) > 0) @foreach($comanda->itens as $item) @php $code = rand(0,9999999999); @endphp
{{ substr($item->produto->nome, 0, 30) }}
R$ {{ __moeda($item->valor_unitario) }} {{ $item->produto->unidade }}
R$ {{ __moeda($item->valor_unitario * $item->quantidade) }}
@if(__isAdmin()) @endif
@endforeach @endif @endif

@if($comanda != null) @if(!$comanda->_mesa) @else @endif @else @endif
Total: R$ {{ $comanda != null ? __moeda($comanda->total + $comanda->acrescimo - $comanda->desconto) : '0,00' }}
@include('modals._info_produto') @include('modals._finalizar_pdv_comanda') @include('modals._fatura_venda') @include('modals._detalhes_item_mesas') {!!Form::close()!!} @include('modals._definir_mesa') @endsection @section('js') @endsection