{{App\Language::trans('Price Table Form')}}

@php $rows = old('prices') ? old('prices'):$model->prices; @endphp @foreach($rows as $row) @php $i++; @endphp @endforeach
# {{App\Language::trans('Unit Started')}} {{App\Language::trans('Unit Ended')}} {{App\Language::trans('GST')}} {{App\Language::trans('Unit Price')}} {{App\Language::trans('Action')}}
{{$i}} {{Form::text('prices['.$i.'][started]', $row['started'], ['class'=>'full-width'])}} {{Form::text('prices['.$i.'][ended]', $row['ended'], ['class'=>'full-width'])}} {{Form::checkbox('prices['.$i.'][is_gst]', 1, (isset($row['is_gst']) ? $row['is_gst']:false), ['class'=>''])}} {{Form::text('prices['.$i.'][unit_price]', $row['unit_price'], ['class'=>'full-width'])}}
{{$i}} {{Form::text('prices['.$i.'][started]', null, ['class'=>'full-width'])}} {{Form::text('prices['.$i.'][ended]', null, ['class'=>'full-width'])}} {{Form::checkbox('prices['.$i.'][is_gst]', 1, (count($rows) ? false:true), ['class'=>''])}} {{Form::text('prices['.$i.'][unit_price]', null, ['class'=>'full-width'])}}
{{App\Language::trans('Add Row')}}