php – How to change the name of the button if the user is registered – LARAVEL?

Good night, I would like to put a warning type on the button if the user has made such an inscription in my case has been renovated, the user enters the map and note that the application has already changed the name of the button and that it is written "registered" …

— Controller store that records, lists the data and sends the data to the form

public service listardados () {
$ matricula = Enrollment :: where (& # 39; user_id & # 39 ;, Auth :: id ()) -> get ();

// dd ($ inscription);
return the view ("dashboard.renovacao.teste", compact (& # 39; matricula & # 39;));
}

public function store (request $ RenewalRequest) {


$ user = Auth () -> user ();

$ data = $ request-> get (& # 39; rematricula & # 39;);

foreach ($ data as $ key => $ given) {

Renovation :: create ($ remitted);
}

return the view ("dashboard.renovation.confirmation", compact (& # 39;) & quot;) & quot;
}

–FORM

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

Renewal request

{{csrf_field ()}}
@if ($ crisp-> count ()) ** Recorded data **
@foreach ($ registered as $ matric)
Name of the Father:
Name of the student:
WARNING?

• warning message

Return arrow_back_ios
@else

Sorry! Page not available, you do not have an account in this institution, search the register and make your registration

Return arrow_back_ios @endif

@endsection