mirror of
https://github.com/Aviortheking/CA_LARAVEL.git
synced 2025-04-22 19:02:11 +00:00
45 lines
1.4 KiB
PHP
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
|