CA_LARAVEL/resources/views/contactUS.blade.php
2020-03-13 11:11:35 +01:00

45 lines
1.4 KiB
PHP

@extends('layout')
@section('title')
<title>Contact</title>
@endsection
@section('content')
<br>
<br>
<div class="container">
@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>
@endsection