chore: remove APAW from tracking; gitignore agent-generated files
This commit is contained in:
22
resources/views/form_data/partials/comment.blade.php
Normal file
22
resources/views/form_data/partials/comment.blade.php
Normal file
@@ -0,0 +1,22 @@
|
||||
@foreach($comments as $comment)
|
||||
<div class="direct-chat-msg">
|
||||
<div class="direct-chat-info clearfix">
|
||||
<span class="direct-chat-name pull-left">
|
||||
{{$comment->commentedBy->name}}
|
||||
</span>
|
||||
<span class="direct-chat-timestamp pull-right">
|
||||
{{\Carbon\Carbon::parse($comment->created_at)->isoFormat("D/M/YY HH:mm A")}}
|
||||
</span>
|
||||
</div>
|
||||
<!-- /.direct-chat-info -->
|
||||
<img class="direct-chat-img" src="https://ui-avatars.com/api/?name={{$comment->commentedBy->name}}">
|
||||
<!-- /.direct-chat-img -->
|
||||
<div class="direct-chat-text">
|
||||
{!! $comment->comment !!}
|
||||
@if(Auth::user()->id == $comment->user_id)
|
||||
<i class="delete-comment fa fa-trash float-right text-danger cursor-pointer" data-comment_id="{{$comment->id}}" data-form_data_id="{{$comment->form_data_id}}"></i>
|
||||
@endif
|
||||
</div>
|
||||
<!-- /.direct-chat-text -->
|
||||
</div>
|
||||
@endforeach
|
||||
75
resources/views/form_data/partials/form_data_pdf.blade.php
Normal file
75
resources/views/form_data/partials/form_data_pdf.blade.php
Normal file
@@ -0,0 +1,75 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>{{ucFirst($form_data->form->name)}}</title>
|
||||
<style type="text/css">
|
||||
th, td {
|
||||
padding: 15px;
|
||||
text-align: left;
|
||||
}
|
||||
tr:nth-child(even) {
|
||||
background-color: #f2f2f2;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div style="width: 100% !important;text-align: center;margin-bottom: 20px;">
|
||||
@if(!empty($pdf_header))
|
||||
{!! $pdf_header !!}
|
||||
@else
|
||||
<div style="width: 50% !important;">
|
||||
<h3>
|
||||
{{ucFirst($form_data->form->name)}}
|
||||
@if(!empty($form_data->submittedBy))
|
||||
<small>
|
||||
(
|
||||
@lang('messages.submitted_by'):
|
||||
{{$form_data->submittedBy->name}}
|
||||
)
|
||||
</small>
|
||||
@endif
|
||||
</h3>
|
||||
</div>
|
||||
<div style="width: 50% !important;">
|
||||
@if(isset($form_data->form->schema['settings']['form_submision_ref']['is_enabled']) && $form_data->form->schema['settings']['form_submision_ref']['is_enabled'] && !empty($form_data->submission_ref))
|
||||
<b>@lang('messages.submission_numbering'):</b>
|
||||
{{$form_data->submission_ref}}
|
||||
@endif
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<table style="width:100%">
|
||||
<tbody>
|
||||
@foreach($form_data->form->schema['form'] as $element)
|
||||
@isset($form_data->data[$element['name']])
|
||||
<tr>
|
||||
<td style="width: 50% !important;">
|
||||
<strong>{{$element['label']}}</strong>
|
||||
</td>
|
||||
<td style="width: 50% !important;">
|
||||
@if($element['type'] == 'file_upload')
|
||||
@include('form_data.file_view', ['form_upload' => $form_data->data[$element['name']]])
|
||||
@elseif($element['type'] == 'signature')
|
||||
@if(!empty($form_data->data[$element['name']]))
|
||||
<a target="_blank" href="{{$form_data->data[$element['name']]}}"
|
||||
download="Signature">
|
||||
<img src="{{$form_data->data[$element['name']]}}" class="signature">
|
||||
</a>
|
||||
@endif
|
||||
@elseif(is_array($form_data->data[$element['name']]) && $element['type'] != 'file_upload')
|
||||
|
||||
{{implode(', ', $form_data->data[$element['name']])}}
|
||||
|
||||
@else
|
||||
{!! nl2br($form_data->data[$element['name']]) !!}
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endisset
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
69
resources/views/form_data/partials/submission_msg.blade.php
Normal file
69
resources/views/form_data/partials/submission_msg.blade.php
Normal file
@@ -0,0 +1,69 @@
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
// Запускаем обратный отсчет
|
||||
var timeLeft = 3;
|
||||
var countdown = setInterval(function() {
|
||||
timeLeft--;
|
||||
$('#countdown').text(timeLeft);
|
||||
|
||||
// Если обратный отсчет закончился, закрываем вкладку
|
||||
if (timeLeft <= 0) {
|
||||
clearInterval(countdown);
|
||||
window.close();
|
||||
}
|
||||
}, 1000);
|
||||
});
|
||||
</script>
|
||||
<div class="row">
|
||||
<div class="col-md-6 offset-md-3 text-center mt-3">
|
||||
<div class="alert alert-success">
|
||||
<h5>
|
||||
<i class="far fa-check-circle"></i>
|
||||
{!!$form->schema['settings']['notification']['success_msg']!!}
|
||||
<span id="countdown">3</span>
|
||||
</h5>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row justify-content-center">
|
||||
@if(isset($data['sub_ref_qr_code']) && !empty($data['sub_ref_qr_code']))
|
||||
<div class="col-md-4 text-center">
|
||||
<img src="{!!$data['sub_ref_qr_code']!!}"
|
||||
alt="{{$form->name}} Ref Num Qr Code"
|
||||
style="padding: 2.5rem;"/>
|
||||
<a href="{!!$data['sub_ref_qr_code']!!}"
|
||||
class="btn btn-outline-primary btn-block mt-2"
|
||||
role="button"
|
||||
download="{{$form->name}} Ref Num Qr Code">
|
||||
<i class="far fa-arrow-alt-circle-down fa-fw fa-lg"></i>
|
||||
{{__('messages.download_qr_code')}}
|
||||
</a>
|
||||
</div>
|
||||
@elseif(isset($data['sub_ref_bar_code']) && !empty($data['sub_ref_bar_code']))
|
||||
<div class="col-md-4 text-center">
|
||||
<img src="{!!$data['sub_ref_bar_code']!!}" alt="{{$form->name}} Ref Num Bar Code"
|
||||
style="padding: 2.5rem;"/>
|
||||
<a href="{!!$data['sub_ref_bar_code']!!}"
|
||||
class="btn btn-outline-primary btn-block mt-2"
|
||||
role="button"
|
||||
download="{{$form->name}} Ref Num Bar Code">
|
||||
<i class="far fa-arrow-alt-circle-down fa-fw fa-lg"></i>
|
||||
{{__('messages.download_bar_code')}}
|
||||
</a>
|
||||
</div>
|
||||
@elseif(!in_array($form->schema['settings']['notification']['post_submit_action'], ['redirect']) &&
|
||||
isset($form->schema['settings']['is_qr_code_enabled']) &&
|
||||
$form->schema['settings']['is_qr_code_enabled'])
|
||||
<div class="col-md-4 text-center">
|
||||
<div id="qrcode" style="padding: 1.2rem;"></div>
|
||||
<a href=""
|
||||
class="btn btn-outline-primary btn-block mt-2"
|
||||
role="button"
|
||||
download="{{$form->name}} Qr Code"
|
||||
id="download_qrcode">
|
||||
<i class="far fa-arrow-alt-circle-down fa-fw fa-lg"></i>
|
||||
{{__('messages.download_qr_code')}}
|
||||
</a>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
Reference in New Issue
Block a user