Laravel 9 Update (#1413)
Update to Laravel 9 and PHP 8+ Co-authored-by: B.Fatih KOZ <fatih.koz@gmail.com>
This commit is contained in:
@@ -22,13 +22,8 @@
|
||||
|
||||
{{-- Start of the required files in the head block --}}
|
||||
<link href="{{ public_mix('/assets/global/css/vendor.css') }}" rel="stylesheet"/>
|
||||
<style type="text/css">
|
||||
@yield('css')
|
||||
</style>
|
||||
|
||||
<script>
|
||||
@yield('scripts_head')
|
||||
</script>
|
||||
@yield('css')
|
||||
@yield('scripts_head')
|
||||
{{-- End of the required stuff in the head block --}}
|
||||
|
||||
</head>
|
||||
|
||||
@@ -97,14 +97,11 @@
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
@if(config('captcha.enabled'))
|
||||
<label for="g-recaptcha-response" class="control-label">@lang('auth.fillcaptcha')</label>
|
||||
<div
|
||||
class="input-group form-group-no-border {{ $errors->has('g-recaptcha-response') ? 'has-danger' : '' }}">
|
||||
{!! NoCaptcha::display(config('captcha.attributes')) !!}
|
||||
</div>
|
||||
@if ($errors->has('g-recaptcha-response'))
|
||||
<p class="text-danger">{{ $errors->first('g-recaptcha-response') }}</p>
|
||||
@if($captcha['enabled'] === true)
|
||||
<label for="h-captcha" class="control-label">@lang('auth.fillcaptcha')</label>
|
||||
<div class="h-captcha" data-sitekey="{{ $captcha['site_key'] }}"></div>
|
||||
@if ($errors->has('h-captcha-response'))
|
||||
<p class="text-danger">{{ $errors->first('h-captcha-response') }}</p>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
@@ -158,7 +155,9 @@
|
||||
@endsection
|
||||
|
||||
@section('scripts')
|
||||
{!! NoCaptcha::renderJs(config('app.locale')) !!}
|
||||
@if ($captcha['enabled'])
|
||||
<script src="https://hcaptcha.com/1/api.js" async defer></script>
|
||||
@endif
|
||||
|
||||
<script>
|
||||
$('#toc_accepted').click(function () {
|
||||
|
||||
@@ -9,8 +9,10 @@
|
||||
@if($file->description)
|
||||
- {{$file->description}}
|
||||
@endif
|
||||
<span
|
||||
style="margin-left: 20px">{{ $file->download_count.' '.trans_choice('common.download', $file->download_count) }}</span>
|
||||
@if ($file->download_count > 0)
|
||||
<span
|
||||
style="margin-left: 20px">{{ $file->download_count.' '.trans_choice('common.download', $file->download_count) }}</span>
|
||||
@endif
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<p class="category">{{ $item->user->name_private }}
|
||||
- {{ show_datetime($item->created_at) }}</p>
|
||||
|
||||
{{ $item->body }}
|
||||
{!! $item->body !!}
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user