header.blade.php
13.7 KB
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
@stack('header_start')
<header class="main-header">
<!-- Logo -->
<a href="{{ url('/') }}" class="logo">
@if (setting('general.admin_theme', 'skin-green-light') == 'skin-green-light')
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><img src="{{ asset('public/img/akaunting-logo-white.png') }}" class="logo-image-mini" width="25" alt="Akaunting Logo"></span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg"><img src="{{ asset('public/img/akaunting-logo-white.png') }}" class="logo-image-lg" width="25" alt="Akaunting Logo"> <b>Akaunting</b></span>
@else
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><img src="{{ asset('public/img/akaunting-logo-green.png') }}" class="logo-image-mini" width="25" alt="Akaunting Logo"></span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg"><img src="{{ asset('public/img/akaunting-logo-green.png') }}" class="logo-image-lg" width="25" alt="Akaunting Logo"> <b>Akaunting</b></span>
@endif
</a>
<!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-static-top">
<!-- Sidebar toggle button-->
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
<span class="sr-only">Toggle navigation</span>
</a>
<ul class="add-new nav navbar-nav pull-left">
<!-- Notifications: style can be found in dropdown.less -->
<li class="dropdown add-new-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-plus"></i>
</a>
<div class="dropdown-menu">
<ul class="list-inline">
<li>
<ul class="list-unstyled">
<li class="header"><i class="fa fa-money"></i> <span style="font-weight: 600;">{{ trans_choice('general.incomes', 1) }}</span></li>
<li>
<ul class="menu">
@permission('create-incomes-invoices')
<li><a href="{{ url('incomes/invoices/create') }}">{{ trans_choice('general.invoices', 1) }}</a></li>
@endpermission
@permission('create-incomes-revenues')
<li><a href="{{ url('incomes/revenues/create') }}">{{ trans_choice('general.revenues', 1) }}</a></li>
@endpermission
@permission('create-incomes-customers')
<li><a href="{{ url('incomes/customers/create') }}">{{ trans_choice('general.customers', 1) }}</a></li>
@endpermission
</ul>
</li>
</ul>
</li>
<li>
<ul class="list-unstyled">
<li class="header"><i class="fa fa-shopping-cart"></i> <span style="font-weight: 600;">{{ trans_choice('general.expenses', 1) }}</span></li>
<li>
<ul class="menu">
@permission('create-expenses-bills')
<li><a href="{{ url('expenses/bills/create') }}">{{ trans_choice('general.bills', 1) }}</a></li>
@endpermission
@permission('create-expenses-payments')
<li><a href="{{ url('expenses/payments/create') }}">{{ trans_choice('general.payments', 1) }}</a></li>
@endpermission
@permission('create-expenses-vendors')
<li><a href="{{ url('expenses/vendors/create') }}">{{ trans_choice('general.vendors', 1) }}</a></li>
@endpermission
</ul>
</li>
</ul>
</li>
<li>
<ul class="list-unstyled">
<li class="header"><i class="fa fa-university"></i> <span style="font-weight: 600;">{{ trans('general.banking') }}</span></li>
<li>
<ul class="menu">
@permission('create-banking-accounts')
<li><a href="{{ url('banking/accounts/create') }}">{{ trans_choice('general.accounts', 1) }}</a></li>
@endpermission
@permission('create-banking-transfers')
<li><a href="{{ url('banking/transfers/create') }}">{{ trans_choice('general.transfers', 1) }}</a></li>
@endpermission
</ul>
</li>
</ul>
</li>
</ul>
</div>
</li>
</ul>
@stack('header_navbar_left')
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
@stack('header_navbar_right')
@permission('read-notifications')
<!-- Notifications: style can be found in dropdown.less -->
<li class="dropdown notifications-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-bell-o"></i>
@if ($notifications)
<span class="label label-warning">{{ $notifications }}</span>
@endif
</a>
<ul class="dropdown-menu">
<li class="header">{{ trans_choice('header.notifications.counter', $notifications, ['count' => $notifications]) }}</li>
<li>
<!-- inner menu: contains the actual data -->
<ul class="menu">
@if (count($bills))
<li>
<a href="{{ url('auth/users/' . $user->id . '/read-bills') }}">
<i class="fa fa-shopping-cart text-red"></i> {{ trans_choice('header.notifications.upcoming_bills', count($bills), ['count' => count($bills)]) }}
</a>
</li>
@endif
@if (count($invoices))
<li>
<a href="{{ url('auth/users/' . $user->id . '/read-invoices') }}">
<i class="fa fa-money text-green"></i> {{ trans_choice('header.notifications.overdue_invoices', count($invoices), ['count' => count($invoices)]) }}
</a>
</li>
@endif
@if (count($items))
<li>
<a href="{{ url('auth/users/' . $user->id . '/read-items') }}">
<i class="fa fa-cubes text-red"></i> {{ trans_choice('header.notifications.items_stock', count($items), ['count' => count($items)]) }}
</a>
</li>
@endif
</ul>
</li>
<li class="footer"><a href="#">{{ trans('header.notifications.view_all') }}</a></li>
</ul>
</li>
@endpermission
<!-- Tasks: style can be found in dropdown.less -->
<li class="dropdown tasks-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-flag-o"></i>
</a>
<ul class="dropdown-menu">
<li class="header">{{ trans('header.change_language') }}</li>
<li>
<!-- inner menu: contains the actual data -->
{!! language()->flags() !!}
</li>
</ul>
</li>
@permission('read-install-updates')
<!-- Updates: style can be found in dropdown.less -->
<li>
<a href="{{ url('install/updates') }}" data-toggle="tooltip" data-placement="bottom" title="{{ $updates }} Updates Available">
<i class="fa fa-refresh"></i>
@if ($updates)
<span class="label label-danger">{{ $updates }}</span>
@endif
</a>
</li>
@endpermission
<!-- Updates: style can be found in dropdown.less -->
<li class="hidden-xs">
<a href="{{ url('https://akaunting.com/docs') }}" target="_blank" title="{{ trans('general.help') }}">
<i class="fa fa-life-ring"></i>
</a>
</li>
<!-- User Account: style can be found in dropdown.less -->
<li class="dropdown user user-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
@if ($user->picture)
@if (setting('general.use_gravatar', '0') == '1')
<img src="{{ $user->picture }}" class="user-image" alt="User Image">
@else
<img src="{{ Storage::url($user->picture->id) }}" class="user-image" alt="User Image">
@endif
@else
<i class="fa fa-user-o"></i>
@endif
@if (!empty($user->name))
<span class="hidden-xs">{{ $user->name }}</span>
@endif
</a>
<ul class="dropdown-menu">
<!-- User image -->
<li class="user-header">
@if ($user->picture)
@if (setting('general.use_gravatar', '0') == '1')
<img src="{{ $user->picture }}" class="img-circle" alt="User Image">
@else
<img src="{{ Storage::url($user->picture->id) }}" class="img-circle" alt="User Image">
@endif
@else
<i class="fa fa-4 fa-user-o" style="color: #fff; font-size: 7em;"></i>
@endif
<p>
@if (!empty($user->name))
{{ $user->name }}
@endif
<small>{{ trans('header.last_login', ['time' => $user->last_logged_in_at]) }}</small>
</p>
</li>
<!-- Menu Body -->
<li class="user-body">
<div class="row">
@permission('read-auth-users')
<div class="col-xs-4 text-center">
<a href="{{ url('auth/users') }}">{{ trans_choice('general.users', 2) }}</a>
</div>
@endpermission
@permission('read-auth-roles')
<div class="col-xs-4 text-center">
<a href="{{ url('auth/roles') }}">{{ trans_choice('general.roles', 2) }}</a>
</div>
@endpermission
@permission('read-auth-permissions')
<div class="col-xs-4 text-center">
<a href="{{ url('auth/permissions') }}">{{ trans_choice('general.permissions', 2) }}</a>
</div>
@endpermission
</div>
<!-- /.row -->
</li>
<!-- Menu Footer-->
<li class="user-footer">
@permission('read-auth-profile')
<div class="pull-left">
<a href="{{ url('auth/users/' . $user->id . '/edit') }}" class="btn btn-default btn-flat">{{ trans('auth.profile') }}</a>
</div>
@endpermission
<div class="pull-right">
<a href="{{ url('auth/logout') }}" class="btn btn-default btn-flat">{{ trans('auth.logout') }}</a>
</div>
</li>
</ul>
</li>
</ul>
</div>
</nav>
</header>
@stack('header_end')