Copd (Grid View)
Specific Folder FTP Upload / ftp-deploy (push) Successful in 36s
Details
Specific Folder FTP Upload / ftp-deploy (push) Successful in 36s
Details
This commit is contained in:
parent
d850f86e6d
commit
db31b18280
|
|
@ -28,6 +28,26 @@ $brandData = [
|
|||
]
|
||||
];
|
||||
@endphp
|
||||
|
||||
@php
|
||||
$submissions = Formhelper::getMultiformData($form->partition, $form_id, $form->user_id);
|
||||
|
||||
|
||||
$formdata = null;
|
||||
|
||||
if (!empty($submissions->data->submissions)) {
|
||||
foreach ($submissions->data->submissions as $submission) {
|
||||
if ($submission->id == $id) {
|
||||
$formdata = $submission->formdata ?? null;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@endphp
|
||||
|
||||
|
||||
|
||||
<body class="loading">
|
||||
<div class="account-pages">
|
||||
<div class="container">
|
||||
|
|
@ -175,69 +195,69 @@ $brandData = [
|
|||
@break
|
||||
@case('multitextbox')
|
||||
|
||||
<div class="table-responsive">
|
||||
<div class="table-responsive">
|
||||
|
||||
<table class="table table-bordered">
|
||||
<table class="table table-bordered">
|
||||
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
<th width="70%">Brand</th>
|
||||
<th width="30%">POB Units</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
<th width="70%">Brand</th>
|
||||
<th width="30%">POB Units</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<tbody>
|
||||
|
||||
@foreach($brandData as $brand)
|
||||
@foreach($brandData as $brand)
|
||||
|
||||
<tr>
|
||||
<tr>
|
||||
|
||||
<td>{{ $brand['brand'] }}</td>
|
||||
<td>{{ $brand['brand'] }}</td>
|
||||
|
||||
<td>
|
||||
<td>
|
||||
|
||||
<input
|
||||
type="number"
|
||||
min="0"
|
||||
step="1"
|
||||
class="form-control pob-unit"
|
||||
id="field-{{ $brand['slug'] }}"
|
||||
name="{{ $brand['slug'] }}"
|
||||
value="{{ $id && isset($formdata->{$brand['slug']}) ? $formdata->{$brand['slug']} : 0 }}"
|
||||
>
|
||||
<input
|
||||
type="number"
|
||||
min="0"
|
||||
step="1"
|
||||
class="form-control pob-unit"
|
||||
id="field-{{ $brand['slug'] }}"
|
||||
name="{{ $brand['slug'] }}"
|
||||
value="{{ $id && isset($formdata->{$brand['slug']}) ? $formdata->{$brand['slug']} : 0 }}"
|
||||
>
|
||||
|
||||
</td>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
</tr>
|
||||
|
||||
@endforeach
|
||||
@endforeach
|
||||
|
||||
<tr class="table-secondary">
|
||||
<tr class="table-secondary">
|
||||
|
||||
<th>Total POB Units</th>
|
||||
<th>Total POB Units</th>
|
||||
|
||||
<th>
|
||||
<th>
|
||||
|
||||
<input
|
||||
type="number"
|
||||
id="field-total_pob_units"
|
||||
name="total_pob_units"
|
||||
class="form-control"
|
||||
readonly
|
||||
value="{{ $id && isset($formdata->total_pob_units) ? $formdata->total_pob_units : 0 }}"
|
||||
>
|
||||
<input
|
||||
type="number"
|
||||
id="field-total_pob_units"
|
||||
name="total_pob_units"
|
||||
class="form-control"
|
||||
readonly
|
||||
value="{{ $id && isset($formdata->total_pob_units) ? $formdata->total_pob_units : 0 }}"
|
||||
>
|
||||
|
||||
</th>
|
||||
</th>
|
||||
|
||||
</tr>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@break
|
||||
@break
|
||||
@endswitch
|
||||
</div>
|
||||
@endforeach
|
||||
|
|
|
|||
Loading…
Reference in New Issue