@extends('loja.default', ['title' => 'Cadastro']) @section('css') @endsection @section('content')
@csrf

Cadastro

@if($errors->has('nome'))
{{ $errors->first('nome') }} @endif
@if($errors->has('email'))
{{ $errors->first('email') }} @endif
@if($errors->has('senha'))
{{ $errors->first('senha') }} @endif
@if($carrinho == [])
@if($errors->has('termos'))
{{ $errors->first('termos') }} @endif
@endif
@if($carrinho != [])

Seu Pedido

PRODUTO
SUBTOTAL
@foreach($carrinho->itens as $i)
{{ number_format($i->quantidade, 0) }}x {{ $i->produto->nome }}
R${{ __moeda($i->sub_total) }}
@endforeach
Entrega
R${{ __moeda($carrinho->valor_frete) }}
TOTAL
R${{ __moeda($carrinho->valor_total) }}
@if($errors->has('termos'))
{{ $errors->first('termos') }} @endif
@endif
@endsection @section('js') @endsection