@if ($errors->any() || session()->has('error') || session()->has('message'))
@if ($errors->any())
@foreach ($errors->all() as $error)
- {{ $error }}
@endforeach
@endif
@if (session()->has('error'))
{{ session()->get('error') }}
@endif
@if (session()->has('message'))
{{ session()->get('message') }}
@endif