248 lines
16 KiB
PHP
248 lines
16 KiB
PHP
@php
|
|
// echo "<pre>";
|
|
// print_r($submissions);
|
|
// exit;
|
|
@endphp
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
@include('layouts.shared/title-meta', ['title' => 'History'])
|
|
@include('layouts.shared/head-css', ['mode' => $mode ?? '', 'demo' => $demo ?? ''])
|
|
</head>
|
|
|
|
<body class="loading">
|
|
<div class="account-pages">
|
|
<div class="container">
|
|
|
|
<!-- start page title -->
|
|
<div class="row">
|
|
<div class="col-8 p-2">
|
|
<h4 class="page-title">{{ $formname }}</h4>
|
|
</div>
|
|
<div class="col-4 p-2">
|
|
|
|
</div>
|
|
</div>
|
|
<!-- end page title -->
|
|
@if (session()->has('message'))
|
|
<div class="alert alert-success">
|
|
{{ session()->get('message') }}
|
|
</div>
|
|
@endif
|
|
@if (session()->has('error'))
|
|
<div class="alert alert-danger">
|
|
{{ session()->get('error') }}
|
|
</div>
|
|
@endif
|
|
<div class="row">
|
|
<div class="col-12 p-0">
|
|
<div class="card">
|
|
|
|
<div class="card-body">
|
|
<div class="responsive-table-plugin">
|
|
<div class="table-rep-plugin">
|
|
<div class="table-responsive" data-pattern="priority-columns">
|
|
<table id="tech-companies-1" class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th data-priority="1">Submission Date</th>
|
|
<th data-priority="1" colspan="2">Submitted By</th>
|
|
@foreach ($questions as $code => $question)
|
|
<th data-priority="1">{{ $question->label }}</th>
|
|
@endforeach
|
|
<th>Hysodew Rx</th>
|
|
<th>Competitor 1 Hysodew Rx Name</th>
|
|
<th>Competitor 1 Hysodew Rx Other Name</th>
|
|
<th>Competitor 1 Hysodew Rx ns</th>
|
|
|
|
<th>Competitor 2 Hysodew Rx Name</th>
|
|
<th>Competitor 2 Hysodew Rx Other Name</th>
|
|
<th>Competitor 2 Hysodew Rx ns</th>
|
|
|
|
<th>Competitor 3 Hysodew Rx Name</th>
|
|
<th>Competitor 3 Hysodew Rx Other Name</th>
|
|
<th>Competitor 3 Hysodew Rx ns</th>
|
|
|
|
<th>Hydrakem Rx</th>
|
|
<th>Competitor 1 Hydrakem Rx Name</th>
|
|
<th>Competitor 1 Hydrakem Rx Other Name</th>
|
|
<th>Competitor 1 Hydrakem Rx ns</th>
|
|
|
|
<th>Competitor 2 Hydrakem Rx Name</th>
|
|
<th>Competitor 2 Hydrakem Rx Other Name</th>
|
|
<th>Competitor 2 Hydrakem Rx ns</th>
|
|
|
|
<th>Competitor 3 Hydrakem Rx Name</th>
|
|
<th>Competitor 3 Hydrakem Rx Other Name</th>
|
|
<th>Competitor 3 Hydrakem Rx ns</th>
|
|
|
|
<th>Hydrakem Max Rx</th>
|
|
<th>Competitor 1 Hydrakem Max Rx Name</th>
|
|
<th>Competitor 1 Hydrakem Max Rx Other Name</th>
|
|
<th>Competitor 1 Hydrakem Max Rx ns</th>
|
|
|
|
<th>Competitor 2 Hydrakem Max Rx Name</th>
|
|
<th>Competitor 2 Hydrakem Max Rx Other Name</th>
|
|
<th>Competitor 2 Hydrakem Max Rx ns</th>
|
|
|
|
<th>Competitor 3 Hydrakem Max Rx Name</th>
|
|
<th>Competitor 3 Hydrakem Max Rx Other Name</th>
|
|
<th>Competitor 3 Hydrakem Max Rx ns</th>
|
|
|
|
<th>Moxam Rx</th>
|
|
<th>Competitor 1 Moxam Rx Name</th>
|
|
<th>Competitor 1 Moxam Rx Other Name</th>
|
|
<th>Competitor 1 Moxam Rx ns</th>
|
|
|
|
<th>Competitor 2 Moxam Rx Name</th>
|
|
<th>Competitor 2 Moxam Rx Other Name</th>
|
|
<th>Competitor 2 Moxam Rx ns</th>
|
|
|
|
<th>Competitor 3 Moxam Rx Name</th>
|
|
<th>Competitor 3 Moxam Rx Other Name</th>
|
|
<th>Competitor 3 Moxam Rx ns</th>
|
|
|
|
<th>Moxam D Rx</th>
|
|
<th>Competitor 1 Moxam D Rx Name</th>
|
|
<th>Competitor 1 Moxam D Rx Other Name</th>
|
|
<th>Competitor 1 Moxam D Rx ns</th>
|
|
|
|
<th>Competitor 2 Moxam D Rx Name</th>
|
|
<th>Competitor 2 Moxam D Rx Other Name</th>
|
|
<th>Competitor 2 Moxam D Rx ns</th>
|
|
|
|
<th>Competitor 3 Moxam D Rx Name</th>
|
|
<th>Competitor 3 Moxam D Rx Other Name</th>
|
|
<th>Competitor 3 Moxam D Rx ns</th>
|
|
|
|
<th data-priority="1">Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($submissions as $submission)
|
|
<tr>
|
|
<th>{{date("M Y", strtotime(isset($submission->record_date) ? $submission->record_date : $submission->updatedAt))}}</th>
|
|
<th>
|
|
<img src="{{$submission->user_info->avatar}}" class="rounded-circle avatar-sm" />
|
|
</th>
|
|
<td>
|
|
<h5 class="m-0 fw-normal">{{$submission->user_info->name}}</h5>
|
|
<p class="mb-0 text-muted"><small>{{$submission->user_info->designation}}</small></p>
|
|
</td>
|
|
@foreach ($questions as $code => $question)
|
|
@if (count((array) $question->options) > 0)
|
|
<td>{{ isset($submission->formdata->{$code}) && isset($question->options->{ $submission->formdata->{$code} }) ? $question->options->{ $submission->formdata->{$code} } : '' }}</td>
|
|
@else
|
|
<td>{{ $submission->formdata->{$code} }}</td>
|
|
@endif
|
|
@endforeach
|
|
{{-- hysodew --}}
|
|
<td>{{$submission->formdata->field_hysodew_rx}}</td>
|
|
<td>{{$submission->formdata->competitor_1_hysodew_rx_name}}</td>
|
|
<td>{{$submission->formdata->competitor_1_hysodew_rx_other}}</td>
|
|
<td>{{$submission->formdata->competitor_1_hysodew_rx_rx_ns}}</td>
|
|
|
|
<td>{{$submission->formdata->competitor_2_hysodew_rx_name}}</td>
|
|
<td>{{$submission->formdata->competitor_2_hysodew_rx_other}}</td>
|
|
<td>{{$submission->formdata->competitor_2_hysodew_rx_rx_ns}}</td>
|
|
|
|
<td>{{$submission->formdata->competitor_3_hysodew_rx_name}}</td>
|
|
<td>{{$submission->formdata->competitor_3_hysodew_rx_other}}</td>
|
|
<td>{{$submission->formdata->competitor_3_hysodew_rx_rx_ns}}</td>
|
|
{{-- --}}
|
|
|
|
{{-- hydrakem --}}
|
|
<td>{{$submission->formdata->field_hydrakem_rx}}</td>
|
|
|
|
<td>{{$submission->formdata->competitor_1_hydrakem_rx_name}}</td>
|
|
<td>{{$submission->formdata->competitor_1_hydrakem_rx_other}}</td>
|
|
<td>{{$submission->formdata->competitor_1_hydrakem_rx_rx_ns}}</td>
|
|
|
|
<td>{{$submission->formdata->competitor_2_hydrakem_rx_name}}</td>
|
|
<td>{{$submission->formdata->competitor_2_hydrakem_rx_other}}</td>
|
|
<td>{{$submission->formdata->competitor_2_hydrakem_rx_rx_ns}}</td>
|
|
|
|
<td>{{$submission->formdata->competitor_3_hydrakem_rx_name}}</td>
|
|
<td>{{$submission->formdata->competitor_3_hydrakem_rx_other}}</td>
|
|
<td>{{$submission->formdata->competitor_3_hydrakem_rx_rx_ns}}</td>
|
|
{{-- --}}
|
|
|
|
|
|
{{-- hydrakem max --}}
|
|
<td>{{$submission->formdata->field_hydrakem_max_rx}}</td>
|
|
|
|
<td>{{$submission->formdata->competitor_1_hydrakem_max_rx_name}}</td>
|
|
<td>{{$submission->formdata->competitor_1_hydrakem_max_rx_other}}</td>
|
|
<td>{{$submission->formdata->competitor_1_hydrakem_max_rx_rx_ns}}</td>
|
|
|
|
<td>{{$submission->formdata->competitor_2_hydrakem_max_rx_name}}</td>
|
|
<td>{{$submission->formdata->competitor_2_hydrakem_max_rx_other}}</td>
|
|
<td>{{$submission->formdata->competitor_2_hydrakem_max_rx_rx_ns}}</td>
|
|
|
|
<td>{{$submission->formdata->competitor_3_hydrakem_max_rx_name}}</td>
|
|
<td>{{$submission->formdata->competitor_3_hydrakem_max_rx_other}}</td>
|
|
<td>{{$submission->formdata->competitor_3_hydrakem_max_rx_rx_ns}}</td>
|
|
{{-- --}}
|
|
|
|
|
|
{{-- Moxam --}}
|
|
<td>{{$submission->formdata->field_moxam_rx}}</td>
|
|
|
|
<td>{{$submission->formdata->competitor_1_moxam_rx_name}}</td>
|
|
<td>{{$submission->formdata->competitor_1_moxam_rx_other}}</td>
|
|
<td>{{$submission->formdata->competitor_1_moxam_rx_rx_ns}}</td>
|
|
|
|
<td>{{$submission->formdata->competitor_2_moxam_rx_name}}</td>
|
|
<td>{{$submission->formdata->competitor_2_moxam_rx_other}}</td>
|
|
<td>{{$submission->formdata->competitor_2_moxam_rx_rx_ns}}</td>
|
|
|
|
<td>{{$submission->formdata->competitor_3_moxam_rx_name}}</td>
|
|
<td>{{$submission->formdata->competitor_3_moxam_rx_other}}</td>
|
|
<td>{{$submission->formdata->competitor_3_moxam_rx_rx_ns}}</td>
|
|
{{-- --}}
|
|
|
|
{{-- Moxam d --}}
|
|
<td>{{$submission->formdata->field_moxam_d_rx}}</td>
|
|
|
|
<td>{{$submission->formdata->competitor_1_moxam_d_rx_name}}</td>
|
|
<td>{{$submission->formdata->competitor_1_moxam_d_rx_other}}</td>
|
|
<td>{{$submission->formdata->competitor_1_moxam_d_rx_rx_ns}}</td>
|
|
|
|
<td>{{$submission->formdata->competitor_2_moxam_d_rx_name}}</td>
|
|
<td>{{$submission->formdata->competitor_2_moxam_d_rx_other}}</td>
|
|
<td>{{$submission->formdata->competitor_2_moxam_d_rx_rx_ns}}</td>
|
|
|
|
<td>{{$submission->formdata->competitor_3_moxam_d_rx_name}}</td>
|
|
<td>{{$submission->formdata->competitor_3_moxam_d_rx_other}}</td>
|
|
<td>{{$submission->formdata->competitor_3_moxam_d_rx_rx_ns}}</td>
|
|
{{-- --}}
|
|
|
|
<th>
|
|
@if (in_array('edit', $submission->actions))
|
|
<a href="/form/edit?id={{$submission->id}}" class="btn btn-primary btn-xs">Edit</button>
|
|
@endif
|
|
</th>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
</div> <!-- end .table-responsive -->
|
|
|
|
</div> <!-- end .table-rep-plugin-->
|
|
</div> <!-- end .responsive-table-plugin-->
|
|
|
|
</div> <!-- end card body-->
|
|
</div> <!-- end card -->
|
|
</div><!-- end col-->
|
|
</div>
|
|
<!-- end row-->
|
|
</div> <!-- container -->
|
|
|
|
</div>
|
|
<!-- end page -->
|
|
@include('layouts.shared/footer-script')
|
|
</body>
|
|
|
|
</html>
|