Skip to content

Commit 592542e

Browse files
authored
Merge pull request #135 from ReeceM/patch/route-method
remove call to the route method in blade file
2 parents bdac75e + 692fa35 commit 592542e

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

resources/views/sections/mailables.blade.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@
55
@section('content')
66

77
<div class="col-lg-10 col-md-12">
8-
8+
99
<div class="card my-4">
1010
<div class="card-header d-flex align-items-center justify-content-between"><h5>{{ __('Mailables') }}</h5>
1111

1212
@if (!$mailables->isEmpty())
13-
<a class="btn btn-primary" href="{{ route('createMailable') }}" data-toggle="modal" data-target="#newMailableModal">{{ __('Add Mailable') }}</a>
13+
<a class="btn btn-primary" href="#newMailableModal" data-toggle="modal" data-target="#newMailableModal">{{ __('Add Mailable') }}</a>
1414
@endif
1515
<!-- Modal -->
1616
</div>
1717

1818
@if ($mailables->isEmpty())
19-
19+
2020
@component('maileclipse::layout.emptydata')
21-
21+
2222
<span class="mt-4">{{ __("We didn't find anything - just empty space.") }}</span><button class="btn btn-primary mt-3" data-toggle="modal" data-target="#newMailableModal">{{ __('Add New Mailable') }}</button>
2323

2424
@endcomponent
@@ -40,7 +40,7 @@
4040
@foreach($mailables->all() as $mailable)
4141
<tr id="mailable_item_{{ $mailable['name'] }}">
4242
<td class="pr-0">
43-
{{ $mailable['name'] }}
43+
{{ $mailable['name'] }}
4444
</td>
4545
<td class="text-muted" title="/tee">{{ $mailable['namespace'] }} </td>
4646

@@ -76,7 +76,7 @@
7676
</div>
7777
<div class="modal-body">
7878
<div class="alert alert-warning new-mailable-alerts d-none" role="alert">
79-
79+
8080
</div>
8181
<div class="form-group">
8282
<label for="mailableName">Name</label>
@@ -117,7 +117,7 @@
117117
$(document).ready(function(){
118118
119119
if ($('#markdown--truth').is(':checked')) {
120-
120+
121121
$('.markdown-input').show();
122122
} else {
123123
@@ -127,7 +127,7 @@
127127
$('#markdown--truth').change(
128128
function(){
129129
if ($(this).is(':checked')) {
130-
130+
131131
$('.markdown-input').show();
132132
} else {
133133
@@ -179,9 +179,9 @@ function(){
179179
e.preventDefault();
180180
// /generateMailable
181181
// new-mailable-alerts
182-
//
183-
//
184-
182+
//
183+
//
184+
185185
186186
if ( $('input#markdown--truth').is(':checked') && $('#markdownView').val() == '')
187187
{
@@ -213,7 +213,7 @@ function(){
213213
214214
});
215215
216-
216+
217217
</script>
218-
219-
@endsection
218+
219+
@endsection

0 commit comments

Comments
 (0)