@extends('default.layout') @section('content')

{{isset($push) ? 'Editar' : 'Cadastrar'}} Notificação Push

@csrf
@if(!isset($titulo) && !isset($mensagem))
@if($errors->has('titulo'))
{{ $errors->first('titulo') }}
@endif
@if($errors->has('texto'))
{{ $errors->first('texto') }}
@endif
@if($errors->has('path_img'))
{{ $errors->first('path_img') }}
@endif
has('referencia_produto'))
{{ $errors->first('referencia_produto') }}
@endif
@else
@if($errors->has('titulo'))
{{ $errors->first('titulo') }}
@endif
@if($errors->has('texto'))
{{ $errors->first('texto') }}
@endif
@if($errors->has('path_img'))
{{ $errors->first('path_img') }}
@endif
has('referencia_produto'))
{{ $errors->first('referencia_produto') }}
@endif
@endif
@isset($push) @if($push->cliente)

Notificaçao para cliente {{$push->cliente->nome}}


@else

Notificaçao para todos os clientes


@endif @endisset
@if(!isset($push))
Todos os Clientes

@endisset
@endsection