Author SHA1 Message Date
Michal Kváček f51dd9458c FEATURE: change default email template 2017-10-29 21:45:01 +01:00
Michal Kváček 962225080d FEATURE: make intro text white 2017-10-29 21:38:43 +01:00
5 changed files with 74 additions and 5 deletions
@@ -0,0 +1,9 @@
<?php
return [
'from' => 'Od',
'to' => 'Komu',
'subject' => 'Předmět',
'createdAt' => 'Odesláno',
'overview' => 'Přehled přijatých e-mailů',
'detail' => 'Detail e-mailu'
];
@@ -0,0 +1,21 @@
@extends('admin.layoutWithNavigation')
@section('pageHeading', @trans('contactform::sent.detail'))
@section('headerButtons')
<a class="btn btn-secondary btn-sm rounded" href="{{route('sentEmails.index')}}"><i class="fa fa-list"></i></a>
@endsection
@section('content')
<div class="card items">
<div class="card-block">
<h2>{{$email->subject}}</h2>
<p>
{{$email->message}}
</p>
</div>
<div class="card-footer">
</div>
</div>
@endsection
@@ -0,0 +1,42 @@
@extends('admin.layoutWithNavigation')
@section('pageHeading', @trans('contactform::sent.overview'))
@section('content')
@if (count($emails))
<div class="card items">
<div class="card-block">
<table class="table table-striped full-width">
<tr>
<th>@lang('contactform::sent.from')</th>
<th>@lang('contactform::sent.to')</th>
<th>@lang('contactform::sent.createdAt')</th>
<th>@lang('contactform::sent.subject')</th>
<th></th>
</tr>
@foreach($emails as $email)
<tr @if ($email->is_new) class="bold" @endif >
<td>{{$email->from}}</td>
<td>{{$email->to}}</td>
<td>@date($email->created_at)</td>
<td>{{$email->subject}}</td>
<td>
<a href="{{route('sentEmails.show', compact('email'))}}" class="btn btn-sm rounded btn-secondary">
<i class="fa fa-eye"></i>
</a>
</td>
</tr>
@endforeach
</table>
</div>
<div class="card-footer">
{!! $emails->render() !!}
</div>
</div>
@else
<div class="alert alert-info">
<em>@lang('contactform::sent.noEntries')</em>
</div>
@endif
@stop
@@ -1,4 +1 @@
<p>
<strong>Ahoj {{$data->name}}</strong>
</p>
{{$data->message}}
@@ -158,7 +158,7 @@ a:focus {
height: auto;
padding: 100px 0;
text-align: center;
color: black;
color: white;
background-repeat: no-repeat;
background-position: bottom center;
background-attachment: scroll;
@@ -205,7 +205,7 @@ a:focus {
border: 2px solid white;
border-radius: 100% !important;
font-size: 40px;
color: #7F7F7F;
color: white;
background: transparent;
-webkit-transition: background 0.3s ease-in-out;
-moz-transition: background 0.3s ease-in-out;