Skip to content

Commit f406389

Browse files
committed
keep vendor views
1 parent 6209b16 commit f406389

File tree

86 files changed

+2986
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+2986
-1
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ yarn-error.log
1515
.idea
1616
public/vendor/
1717
resources/lang/vendor/
18-
resources/views/vendor/
1918
composer.lock
2019
phpunit.xml
2120

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
@extends('sendportal::layouts.app')
2+
3+
@section('title', __('Cancel Campaign'))
4+
5+
@section('heading')
6+
@lang('Cancel Campaign') - {{ $campaign->name }}
7+
@endsection
8+
9+
@section('content')
10+
11+
@component('sendportal::layouts.partials.actions')
12+
@slot('right')
13+
<a class="btn btn-primary btn-md btn-flat" href="{{ route('sendportal.campaigns.create') }}">
14+
<i class="fa fa-plus mr-1"></i> {{ __('Create Campaign') }}
15+
</a>
16+
@endslot
17+
@endcomponent
18+
19+
<div class="card">
20+
<div class="card-header card-header-accent">
21+
<div class="card-header-inner">
22+
{{ __('Confirm Cancellation') }}
23+
</div>
24+
</div>
25+
<div class="card-body">
26+
<p>
27+
{!! __('Are you sure that you want to cancel the <b>:name</b> campaign?', ['name' => $campaign->name]) !!}
28+
</p>
29+
30+
<p>
31+
@if($campaign->save_as_draft)
32+
{!! __('All draft messages will be permanently deleted.') !!}
33+
@else
34+
{!! __('Messages already dispatched will not be deleted. Unsent messages will not be dispatched.') !!}
35+
@endif
36+
</p>
37+
38+
<form action="{{ route('sendportal.campaigns.cancel', $campaign->id) }}" method="post">
39+
@csrf
40+
<a href="{{ route('sendportal.campaigns.index') }}" class="btn btn-md btn-light">{{ __('Go Back') }}</a>
41+
<button type="submit" class="btn btn-md btn-danger">{{ __('CANCEL') }}</button>
42+
</form>
43+
</div>
44+
</div>
45+
46+
@endsection
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
@extends('sendportal::layouts.app')
2+
3+
@section('title', __('Create Campaign'))
4+
5+
@section('heading', __('Campaigns'))
6+
7+
@section('content')
8+
9+
@if( ! $emailServices)
10+
<div class="callout callout-danger">
11+
<h4>{{ __('You haven\'t added any email service!') }}</h4>
12+
<p>{{ __('Before you can create a campaign, you must first') }} <a
13+
href="{{ route('sendportal.email_services.create') }}">{{ __('add an email service') }}</a>.
14+
</p>
15+
</div>
16+
@else
17+
<div class="row">
18+
<div class="col-lg-8 offset-lg-2">
19+
<div class="card">
20+
<div class="card-header">
21+
{{ __('Create Campaign') }}
22+
</div>
23+
<div class="card-body">
24+
<form action="{{ route('sendportal.campaigns.store') }}" method="POST" class="form-horizontal">
25+
@csrf
26+
@include('sendportal::campaigns.partials.form')
27+
</form>
28+
</div>
29+
</div>
30+
</div>
31+
</div>
32+
@endif
33+
@stop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
@extends('sendportal::layouts.app')
2+
3+
@section('title', __('Delete Campaign'))
4+
5+
@section('heading')
6+
@lang('Delete Campaign') - {{ $campaign->name }}
7+
@endsection
8+
9+
@section('content')
10+
11+
@component('sendportal::layouts.partials.actions')
12+
@slot('right')
13+
<a class="btn btn-primary btn-md btn-flat" href="{{ route('sendportal.campaigns.create') }}">
14+
<i class="fa fa-plus mr-1"></i> {{ __('Create Campaign') }}
15+
</a>
16+
@endslot
17+
@endcomponent
18+
19+
<div class="card">
20+
<div class="card-header card-header-accent">
21+
<div class="card-header-inner">
22+
{{ __('Confirm Delete') }}
23+
</div>
24+
</div>
25+
<div class="card-body">
26+
<p>
27+
{!! __('Are you sure that you want to delete the <b>:name</b> campaign?', ['name' => $campaign->name]) !!}
28+
</p>
29+
<form action="{{ route('sendportal.campaigns.destroy', $campaign->id) }}" method="post">
30+
@csrf
31+
@method('DELETE')
32+
<input type="hidden" name="id" value="{{ $campaign->id }}">
33+
<a href="{{ route('sendportal.campaigns.index') }}" class="btn btn-md btn-light">{{ __('Cancel') }}</a>
34+
<button type="submit" class="btn btn-md btn-danger">{{ __('DELETE') }}</button>
35+
</form>
36+
</div>
37+
</div>
38+
39+
@endsection
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
@extends('sendportal::layouts.app')
2+
3+
@section('title', __('Campaign Design'))
4+
5+
@section('heading')
6+
{{ __('Campaign Design') }}
7+
@stop
8+
9+
@section('content')
10+
11+
<form action="{{ route('campaigns.content.update', $campaign->id) }}" method="POST">
12+
@csrf
13+
@method('PUT')
14+
15+
@include('sendportal::templates.partials.editor')
16+
17+
<br>
18+
19+
<a href="{{ route('sendportal.campaigns.template', $campaign->id) }}" class="btn btn-link"><i
20+
class="fa fa-arrow-left"></i> {{ __('Back') }}</a>
21+
22+
<button class="btn btn-primary" type="submit">{{ __('Save and continue') }}</button>
23+
</form>
24+
@stop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
@extends('sendportal::layouts.app')
2+
3+
@section('title', __('Edit Campaign'))
4+
5+
@section('heading')
6+
{{ __('Edit Campaign') }}
7+
@stop
8+
9+
@section('content')
10+
11+
<div class="row">
12+
<div class="col-lg-8 offset-lg-2">
13+
<div class="card">
14+
<div class="card-header">
15+
{{ __('Edit Campaign') }}
16+
</div>
17+
<div class="card-body">
18+
<form action="{{ route('sendportal.campaigns.update', $campaign->id) }}" method="POST" class="form-horizontal">
19+
@csrf
20+
@method('PUT')
21+
@include('sendportal::campaigns.partials.form')
22+
</form>
23+
</div>
24+
</div>
25+
</div>
26+
</div>
27+
28+
@stop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
@extends('sendportal::layouts.app')
2+
3+
@section('heading')
4+
{{ __('Edit Email Content For Campaign') }} {{ $email->mailable->name }}
5+
@stop
6+
7+
@section('content')
8+
9+
{!! Form::open(['route' => ['steps', $email->mailable->id], 'method' => 'PUT', 'class' => 'form-horizontal']) !!}
10+
11+
@include('emails.content.partials.form')
12+
13+
{!! Form::submitButton(__('Update')) !!}
14+
15+
{!! Form::close() !!}
16+
17+
@stop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
@extends('sendportal::layouts.app')
2+
3+
@section('title', __('Create Email'))
4+
5+
@section('heading')
6+
{{ __('Create Email') }}
7+
@stop
8+
9+
@section('content')
10+
11+
{!! Form::open(['route' => ['steps', $campaign->id], 'class' => 'form-horizontal']) !!}
12+
13+
@include('emails.partials.form')
14+
15+
{!! Form::submitButton(__('Create')) !!}
16+
{!! Form::close() !!}
17+
18+
@stop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
@extends('sendportal::layouts.app')
2+
3+
@section('title', __('Campaigns'))
4+
5+
@section('heading')
6+
{{ __('Campaigns') }}
7+
@endsection
8+
9+
@section('content')
10+
11+
@include('sendportal::campaigns.partials.nav')
12+
13+
@component('sendportal::layouts.partials.actions')
14+
@slot('right')
15+
<a class="btn btn-primary btn-md btn-flat" href="{{ route('sendportal.campaigns.create') }}">
16+
<i class="fa fa-plus mr-1"></i> {{ __('New Campaign') }}
17+
</a>
18+
@endslot
19+
@endcomponent
20+
21+
<div class="card">
22+
<div class="card-table table-responsive">
23+
<table class="table">
24+
<thead>
25+
<tr>
26+
<th>{{ __('Name') }}</th>
27+
@if (request()->routeIs('sendportal.campaigns.sent'))
28+
<th>{{ __('Sent') }}</th>
29+
<th>{{ __('Opened') }}</th>
30+
<th>{{ __('Clicked') }}</th>
31+
@endif
32+
<th>{{ __('Created') }}</th>
33+
<th>{{ __('Status') }}</th>
34+
<th>{{ __('Actions') }}</th>
35+
</tr>
36+
</thead>
37+
<tbody>
38+
@forelse($campaigns as $campaign)
39+
<tr>
40+
<td>
41+
@if ($campaign->draft)
42+
<a href="{{ route('sendportal.campaigns.edit', $campaign->id) }}">{{ $campaign->name }}</a>
43+
@elseif($campaign->sent)
44+
<a href="{{ route('sendportal.campaigns.reports.index', $campaign->id) }}">{{ $campaign->name }}</a>
45+
@else
46+
<a href="{{ route('sendportal.campaigns.status', $campaign->id) }}">{{ $campaign->name }}</a>
47+
@endif
48+
</td>
49+
@if (request()->routeIs('sendportal.campaigns.sent'))
50+
<td>{{ $campaignStats[$campaign->id]['counts']['sent'] }}</td>
51+
<td>{{ number_format($campaignStats[$campaign->id]['ratios']['open'] * 100, 1) . '%' }}</td>
52+
<td>
53+
{{ number_format($campaignStats[$campaign->id]['ratios']['click'] * 100, 1) . '%' }}
54+
</td>
55+
@endif
56+
<td><span title="{{ $campaign->created_at }}">{{ $campaign->created_at->diffForHumans() }}</span></td>
57+
<td>
58+
@include('sendportal::campaigns.partials.status')
59+
</td>
60+
<td>
61+
<div class="dropdown">
62+
<button class="btn btn-light btn-sm btn-wide" type="button" id="dropdownMenuButton"
63+
data-toggle="dropdown" data-boundary="viewport" aria-haspopup="true" aria-expanded="false">
64+
<i class="fas fa-ellipsis-h"></i>
65+
</button>
66+
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
67+
@if ($campaign->draft)
68+
<a href="{{ route('sendportal.campaigns.edit', $campaign->id) }}"
69+
class="dropdown-item">
70+
{{ __('Edit') }}
71+
</a>
72+
@else
73+
<a href="{{ route('sendportal.campaigns.reports.index', $campaign->id) }}"
74+
class="dropdown-item">
75+
{{ __('View Report') }}
76+
</a>
77+
@endif
78+
79+
<a href="{{ route('sendportal.campaigns.duplicate', $campaign->id) }}"
80+
class="dropdown-item">
81+
{{ __('Duplicate') }}
82+
</a>
83+
84+
@if($campaign->canBeCancelled())
85+
<div class="dropdown-divider"></div>
86+
<a href="{{ route('sendportal.campaigns.confirm-cancel', $campaign->id) }}"
87+
class="dropdown-item">
88+
{{ __('Cancel') }}
89+
</a>
90+
@endif
91+
92+
@if ($campaign->draft)
93+
<div class="dropdown-divider"></div>
94+
<a href="{{ route('sendportal.campaigns.destroy.confirm', $campaign->id) }}"
95+
class="dropdown-item">
96+
{{ __('Delete') }}
97+
</a>
98+
@endif
99+
</div>
100+
</div>
101+
</td>
102+
</tr>
103+
@empty
104+
<tr>
105+
<td colspan="100%">
106+
<p class="empty-table-text">
107+
@if (request()->routeIs('sendportal.campaigns.index'))
108+
{{ __('You do not have any draft campaigns.') }}
109+
@else
110+
{{ __('You do not have any sent campaigns.') }}
111+
@endif
112+
</p>
113+
</td>
114+
</tr>
115+
@endforelse
116+
</tbody>
117+
</table>
118+
</div>
119+
</div>
120+
121+
@include('sendportal::layouts.partials.pagination', ['records' => $campaigns])
122+
123+
@endsection

0 commit comments

Comments
 (0)