Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="panel panel-default form-periods">
- <div class="panel-body">
- <div class="row">
- <div class="col-lg-12">
- {!! Form::label('periods', 'Periods') !!}
- </div>
- </div>
- <div class="row">
- <div class="col-lg-12">
- <table class="table table-condensed list-periods">
- <tbody>
- <tr class="hidden" id="template-period-tr">
- <td>
- {!! Form::text(null, null, [
- 'class' => 'form-control',
- 'data-name' => 'period_from',
- 'placeholder' => 'From',
- ]) !!}
- </td>
- <td>
- {!! Form::text(null, null, [
- 'class' => 'form-control',
- 'data-name' => 'period_to',
- 'placeholder' => 'To',
- ]) !!}
- </td>
- <td>
- {!! Form::select(null, $listResultPeriods, null, ['class' => 'form-control', 'data-name' => 'allow']) !!}
- </td>
- <td>
- {!! Form::text(null, null, [
- 'class' => 'form-control',
- 'data-name' => 'comment',
- 'placeholder' => 'Comment',
- ]) !!}
- </td>
- <td>
- <span class="glyphicon glyphicon-remove fa-lg text-danger button-delete-period" style="cursor: pointer; padding-top: 9px;"></span>
- </td>
- </tr>
- @if (@old('period_from'))
- @include('backend.product.product.old_periods')
- @else
- @foreach($product->periods as $period)
- <tr>
- <td>
- {!! Form::text('period_from[]', $period->from, [
- 'class' => 'form-control',
- 'placeholder' => 'From',
- ]) !!}
- </td>
- <td>
- {!! Form::text('period_to[]', $period->to, [
- 'class' => 'form-control',
- 'placeholder' => 'To',
- ]) !!}
- </td>
- <td>
- {!! Form::select('allow[]', $listResultPeriods, $period->allow, [
- 'class' => 'form-control input-select-2-period',
- ]) !!}
- </td>
- <td>
- {!! Form::text('comment[]', $period->comment, ['class' => 'form-control', 'placeholder' => 'Comment']) !!}
- </td>
- <td>
- <span class="glyphicon glyphicon-remove fa-lg text-danger button-delete-period" style="cursor: pointer; padding-top: 9px;"></span>
- </td>
- </tr>
- @endforeach
- @endif
- </tbody>
- </table>
- </div>
- </div>
- <div class="row">
- <div class="col-lg-12 text-right">
- <button type="button" class="btn btn-success" id="button-add-period" style="margin-right: 15px">Add</button>
- </div>
- </div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement