/
layout.blade.php
162 lines (156 loc) · 8.76 KB
/
layout.blade.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<!DOCTYPE html>
<html>
<head>
<title>{{ View::hasSection('title') ? View::getSection('title') . ' - ' . config('app.name') : config('app.name') }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="csrf-token" content="{{ csrf_token() }}" />
<link rel="stylesheet" href="/twemoji-flags.css" />
<script defer src="https://pro.fontawesome.com/releases/v5.10.0/js/all.js" integrity="sha384-G/ZR3ntz68JZrH4pfPJyRbjW+c0+ojii5f+GYiYwldYU69A+Ejat6yIfLSxljXxD" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Muli:400,400i,600,600i" />
<link rel="stylesheet" href="/css/app.css" />
<link rel="stylesheet" href="//cdn.jsdelivr.net/chartist.js/latest/chartist.min.css" />
<script src="//cdn.jsdelivr.net/chartist.js/latest/chartist.min.js"></script>
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5" />
<meta name="msapplication-TileColor" content="#da532c" />
<meta name="theme-color" content="#ffffff" />
<style>
.ct-series-a .ct-slice-donut-solid {
fill: #179BD1;
}
.ct-series-b .ct-slice-donut-solid {
fill: #E4E8EB;
}
.ct-series-a .ct-line {
stroke-width: 2px;
stroke: #179BD1;
}
.theme-dark .ct-label {
color: #758193;
}
[v-cloak] {
display: none;
}
</style>
@livewireStyles
</head>
<body class="theme-{{ Auth::check() ? Auth::user()->theme : 'light' }}">
<div id="app">
@if (Auth::check())
<div class="navigation">
<div class="wrapper">
<ul class="navigation__menu">
<li>
<a href="/dashboard" {!! (Request::path() == 'dashboard') ? 'class="active"' : '' !!}><i class="fas fa-home fa-sm color-blue"></i> <span class="hidden ml-05">{{ __('general.dashboard') }}</span></a>
</li>
<li>
<a href="/transactions" {!! (Request::path() == 'transactions') ? 'class="active"' : '' !!}><i class="fas fa-exchange-alt fa-sm color-green"></i> <span class="hidden ml-05">{{ __('models.transactions') }}</span></a>
</li>
<li>
<a href="/budgets" {!! (Request::path() == 'budgets') ? 'class="active"' : '' !!}><i class="fas fa-wallet fa-sm color-red"></i> <span class="hidden ml-05">{{ __('models.budgets') }}</span></a>
</li>
<li>
<a href="/tags" {!! (Request::path() == 'tags') ? 'class="active"' : '' !!}><i class="fas fa-tag fa-sm color-blue"></i> <span class="hidden ml-05">{{ __('models.tags') }}</span></a>
</li>
<li>
<a href="/reports" {!! (Request::path() == 'reports') ? 'class="active"' : '' !!}><i class="fas fa-chart-line fa-sm color-green"></i> <span class="hidden ml-05">{{ __('pages.reports') }}</span></a>
</li>
</ul>
<ul class="navigation__menu">
<li>
<button-dropdown>
<a slot="button" href="/transactions/create">{{ __('actions.create') }} {{ __('models.transaction') }}</a>
<ul slot="menu" v-cloak>
<li>
<a href="/tags/create">{{ __('actions.create') }} {{ __('models.tag') }}</a>
</li>
<li>
<a href="/imports/create">{{ __('actions.create') }} {{ __('models.import') }}</a>
</li>
</ul>
</button-dropdown>
</li>
<li>
<a href="/activities">
<i class="fas fa-clock"></i>
</a>
</li>
@if (Auth::user()->spaces->count() > 1)
<li>
<dropdown>
<span slot="button">
{{ $selectedSpace->abbreviated_name }} <i class="fas fa-caret-down fa-sm"></i>
</span>
<ul slot="menu" v-cloak>
@foreach (Auth::user()->spaces as $space)
<li>
<a href="/spaces/{{ $space->id }}" v-pre>{{ $space->name }}</a>
</li>
@endforeach
</ul>
</dropdown>
</li>
@endif
<li>
<dropdown>
<span slot="button">
<img src="{{ Auth::user()->avatar }}" class="avatar mr-05" /> <i class="fas fa-caret-down fa-sm"></i>
</span>
<ul slot="menu" v-cloak>
<li>
<a href="/imports">{{ __('models.imports') }}</a>
</li>
<li>
<a href="/settings">{{ __('pages.settings') }}</a>
</li>
<li>
<a href="/logout">{{ __('pages.log_out') }}</a>
</li>
</ul>
</dropdown>
</li>
</ul>
</div>
</div>
@endif
@if (Auth::check() && Auth::user()->verification_token)
<div class="text-center" style="
padding: 15px;
color: #FFF;
background: #F86380;
">{!! __('general.verify_account') !!} (or <form method="POST" action="{{ route('resend_verification_mail') }}" style="display: inline-block;">{{ csrf_field() }}<button class="button link">resend</button></form>)</div>
@endif
@if (session('verification_mail_status'))
<div class="wrapper mt-3">
@switch(session('verification_mail_status'))
@case('success')
@include('partials.alerts.success', ['payload' => ['classes' => '', 'message' => 'An e-mail has been sent your way']])
@break
@case('already_verified')
@include('partials.alerts.danger', ['payload' => ['classes' => '', 'message' => 'You\'ve already been verified']])
@break
@case('rate_limited')
@include('partials.alerts.danger', ['payload' => ['classes' => '', 'message' => 'Please wait a few minutes before requesting another e-mail']])
@break
@endswitch
</div>
@endif
@yield('body')
@if (auth()->check())
<div class="text-center mb-3">
@if ($suggestionBoxEnabled)
<a class="fs-sm" href="/ideas/create">{{ __('general.got_a_suggestion') }}?</a> · {{ $versionNumber }}
@else
{{ $versionNumber }}
@endif
</div>
@endif
</div>
<script src="/js/app.js"></script>
@yield('scripts')
@livewireScripts
</body>
</html>