Untitled
unknown
plain_text
a year ago
2.9 kB
6
Indexable
@extends('adminlte::page')
@section('title', 'Edit Answer')
@section('content_header')
@stop
@section('custom_css')
<link href="{{asset('plugins/select/bootstrap-select.min.css')}}" rel="stylesheet" />
@stop
@section('content')
<div class="box box-primary box-solid">
<div class="box-header with-border">
<h3 class="box-title">Edit Pdf</h3>
</div>
<form role="form" method="post" action="{{url('storeform')}}" enctype="multipart/form-data">
{{csrf_field()}}
<input type="hidden" id="loan_master_id" name="loan_master_id" value="{{$loan_master_id}}">
<input type="hidden" id="activity_id" name="activity_id" value="{{$activity_id}}">
<div class="box-body">
@for ($i = 0; $i < count($agent_answers); $i++)
<div class="form-group">
<label for="name">Question<span class="text-danger">*</span></label>
<input type="hidden" id="data[{{ $i }}][id]" name="data[{{ $i }}][id]" value="{{$agent_answers[$i]->questions_master_id}}">
<!-- <input type="text" class="form-control" id="data[{{ $i }}][question]" name="data[{{ $i }}][question]" value="{{$agent_answers[$i]->question}}" readonly> -->
<input type="text" class="form-control" id="data[{{ $i }}][question]" name="data[{{ $i }}][question]" value="{{$questions[$i]->question}}" readonly>
@if($errors->has('question'))
<span class="text-danger">{{ $errors->first('question') }}</span>
@endif
</div>
<div class="form-group">
<label for="name">Answer<span class="text-danger">*</span></label>
@if($agent_answers[$i]->comments != null)
<input type="text" class="form-control" id="data[{{ $i }}][comments]" name="data[{{ $i }}][comments]" value="{{$agent_answers[$i]->comments}}">
@endif
@if($agent_answers[$i]->answer != null &&$agent_answers[$i]->comments == null)
<input type="text" class="form-control" id="data[{{ $i }}][answer]" name="data[{{ $i }}][answer]" value="{$agent_answers[$i]->answer}}">
@endif
@if($agent_answers[$i]->filename != null || $questions[$i]->is_image > 0)
<input name="data[{{ $i }}][filename]" id="data[{{ $i }}][filename]" value ='{{$agent_answers[$i]->filename}}' style ="margin:5px"/>
<span style="color: #0a9900"><img src="{{Helper::S3F('uploads/agent_documents/images/'. $agent_answers[$i]->filename)}}" alt="adharImage.jpg" title="adharImage.jpg" style="width:250px;height: 250px;" /></span>
<input type="file" name="data[{{ $i }}][uploadedfile]" id="data[{{ $i }}][uploadedfile]"><br>
<label for="file">Select a file to upload:</label>
@endif
</div>
@endfor
<div class="box-footer">
<button type="submit" class="btn btn-primary">Update</button>
</div>
</form>
</div>
@stop
@section('custom_js')
<script src="{{asset('plugins/select/bootstrap-select.min.js')}}"></script>
@stopEditor is loading...
Leave a Comment