mirror of
https://github.com/Aviortheking/CA_LARAVEL.git
synced 2025-06-12 17:49:19 +00:00
Ajout du formulaire contactez-nous | Controller/template_mail
This commit is contained in:
37
resources/views/contactUS.blade.php
Normal file
37
resources/views/contactUS.blade.php
Normal file
@ -0,0 +1,37 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Laravel 5.4 Cloudways Contact US Form Example</title>
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>Contactez-nous</h1>
|
||||
@if(Session::has('success'))
|
||||
<div class="alert alert-success">
|
||||
{{ Session::get('success') }}
|
||||
</div>
|
||||
@endif
|
||||
{!! Form::open(['route'=>'contactus.store']) !!}
|
||||
<div class="form-group {{ $errors->has('name') ? 'has-error' : '' }}">
|
||||
{!! Form::label('Nom:') !!}
|
||||
{!! Form::text('name', old('name'), ['class'=>'form-control', 'placeholder'=>'Enter Name']) !!}
|
||||
<span class="text-danger">{{ $errors->first('name') }}</span>
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('email') ? 'has-error' : '' }}">
|
||||
{!! Form::label('Email:') !!}
|
||||
{!! Form::text('email', old('email'), ['class'=>'form-control', 'placeholder'=>'Enter Email']) !!}
|
||||
<span class="text-danger">{{ $errors->first('email') }}</span>
|
||||
</div>
|
||||
<div class="form-group {{ $errors->has('message') ? 'has-error' : '' }}">
|
||||
{!! Form::label('Message:') !!}
|
||||
{!! Form::textarea('message', old('message'), ['class'=>'form-control', 'placeholder'=>'Enter Message']) !!}
|
||||
<span class="text-danger">{{ $errors->first('message') }}</span>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button class="btn btn-success">Ziiing !</button>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
10
resources/views/email.blade.php
Normal file
10
resources/views/email.blade.php
Normal file
@ -0,0 +1,10 @@
|
||||
Vous avez un message de : {{ $name }}
|
||||
<p>
|
||||
Name: {{ $name }}
|
||||
</p>
|
||||
<p>
|
||||
Email: {{ $email }}
|
||||
</p>
|
||||
<p>
|
||||
Message: {{ $user_message }}
|
||||
</p>
|
6
resources/views/email_receipt.blade.php
Normal file
6
resources/views/email_receipt.blade.php
Normal file
@ -0,0 +1,6 @@
|
||||
<h1>
|
||||
|
||||
Merci {{ $name }} pour votre message.
|
||||
|
||||
</h1>
|
||||
|
Reference in New Issue
Block a user