2020-03-23 18:10:42 +01:00
|
|
|
@extends('portal.ninja2020.layout.app')
|
2022-02-10 01:36:44 +01:00
|
|
|
@section('meta_title', ctrans('texts.view_credit'))
|
2020-03-23 18:10:42 +01:00
|
|
|
|
2020-11-12 12:17:49 +01:00
|
|
|
@push('head')
|
2021-05-16 01:41:12 +02:00
|
|
|
<meta name="pdf-url" content="{{ $credit->pdf_file_path(null, 'url', true) }}">
|
2021-08-30 15:48:01 +02:00
|
|
|
@include('portal.ninja2020.components.no-cache')
|
|
|
|
|
2020-11-12 12:17:49 +01:00
|
|
|
<script src="{{ asset('js/vendor/pdf.js/pdf.min.js') }}"></script>
|
|
|
|
@endpush
|
|
|
|
|
2020-03-23 18:10:42 +01:00
|
|
|
@section('body')
|
2022-02-10 01:36:44 +01:00
|
|
|
<div class="bg-white shadow sm:rounded-lg mb-4" translate>
|
|
|
|
<div class="px-4 py-5 sm:p-6">
|
|
|
|
<div class="sm:flex sm:items-start sm:justify-between">
|
|
|
|
<div>
|
|
|
|
<h3 class="text-lg leading-6 font-medium text-gray-900">
|
|
|
|
{{ ctrans('texts.entity_number_placeholder', ['entity' => ctrans('texts.credit'), 'entity_number' => $credit->number]) }}
|
|
|
|
</h3>
|
|
|
|
|
2022-02-16 00:47:54 +01:00
|
|
|
@if($key)
|
|
|
|
<div class="btn hidden md:block" data-clipboard-text="{{url("client/credit/{$key}")}}" aria-label="Copied!">
|
2022-02-10 01:36:44 +01:00
|
|
|
<div class="flex text-sm leading-6 font-medium text-gray-500">
|
|
|
|
<p class="mr-2">{{url("client/credit/{$key}")}}</p>
|
|
|
|
<p><img class="h-5 w-5" src="{{ asset('assets/clippy.svg') }}" alt="Copy to clipboard"></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-02-16 00:47:54 +01:00
|
|
|
@endif
|
2022-02-10 01:36:44 +01:00
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2021-06-30 20:40:58 +02:00
|
|
|
@include('portal.ninja2020.components.entity-documents', ['entity' => $credit])
|
|
|
|
|
2022-08-24 10:28:08 +02:00
|
|
|
@include('portal.ninja2020.components.pdf-viewer', ['entity' => $credit, 'invitation' => $invitation])
|
2021-05-18 12:01:23 +02:00
|
|
|
|
2022-02-10 01:36:44 +01:00
|
|
|
|
2020-03-23 18:10:42 +01:00
|
|
|
@endsection
|
2020-11-12 12:17:49 +01:00
|
|
|
|
|
|
|
@section('footer')
|
2022-02-10 01:36:44 +01:00
|
|
|
<script src="{{ asset('vendor/clipboard.min.js') }}"></script>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
var clipboard = new ClipboardJS('.btn');
|
|
|
|
|
|
|
|
// clipboard.on('success', function(e) {
|
|
|
|
// console.info('Action:', e.action);
|
|
|
|
// console.info('Text:', e.text);
|
|
|
|
// console.info('Trigger:', e.trigger);
|
|
|
|
|
|
|
|
// e.clearSelection();
|
|
|
|
// });
|
|
|
|
|
|
|
|
// clipboard.on('error', function(e) {
|
|
|
|
// console.error('Action:', e.action);
|
|
|
|
// console.error('Trigger:', e.trigger);
|
|
|
|
// });
|
|
|
|
|
|
|
|
</script>
|
2020-11-12 12:17:49 +01:00
|
|
|
@endsection
|