![]() Server : Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips System : Linux server1.richineiserver.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : fdshops ( 1003) PHP Version : 8.2.21 Disable Function : NONE Directory : /home/fdshops/public_html/resources/views/restaurant/modifier_sets/ |
<div class="modal-dialog" role="document"> <div class="modal-content"> {!! Form::open(['url' => action([\App\Http\Controllers\Restaurant\ModifierSetsController::class, 'store']), 'method' => 'post', 'id' => 'table_add_form' ]) !!} <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h4 class="modal-title">@lang( 'restaurant.add_modifier' )</h4> </div> <div class="modal-body"> <div class="row"> <div class="col-sm-12"> <div class="form-group"> {!! Form::label('name', __( 'restaurant.modifier_set' ) . ':*') !!} {!! Form::text('name', null, ['class' => 'form-control', 'required', 'placeholder' => __( 'lang_v1.name' ) ]); !!} </div> </div> <div class="col-sm-12"> <h4>@lang( 'restaurant.modifiers' )</h4> </div> <div class="col-sm-12"> <table class="table table-condensed" id="add-modifier-table"> <thead> <tr> <th>@lang( 'restaurant.modifier')</th> <th> @lang( 'lang_v1.price') @php $html = '<tr><td> <div class="form-group"> <input type="text" name="modifier_name[]" class="form-control" placeholder="' . __( 'lang_v1.name' ) . '" required> </div> </td> <td> <div class="form-group"> <input type="text" name="modifier_price[]" class="form-control input_number" placeholder="' . __( 'lang_v1.price' ) . '" required> </div> </td>'; $html_other_row = $html . '<td> <button class="tw-dw-btn tw-dw-btn-xs tw-dw-btn-outline tw-dw-btn-error pull-right remove-modifier-row" type="button"><i class="fa fa-minus"></i></button> </td> </tr>'; $html_first_row = $html . "<td> <button class='tw-dw-btn tw-dw-btn-xs tw-dw-btn-outline tw-dw-btn-primary pull-right add-modifier-row' type='button' data-html='{{ $html_other_row }}'> <i class='fa fa-plus'></i></button> </td> </tr>"; @endphp </th> <th> </th> </tr> </thead> <tbody> {!! $html_first_row !!} </tbody> </table> </div> </div> </div> <div class="modal-footer"> <button type="submit" class="tw-dw-btn tw-dw-btn-primary tw-text-white">@lang( 'messages.save' )</button> <button type="button" class="tw-dw-btn tw-dw-btn-neutral tw-text-white" data-dismiss="modal">@lang( 'messages.close' )</button> </div> {!! Form::close() !!} </div><!-- /.modal-content --> </div><!-- /.modal-dialog -->