@if(isset($qtemplate))
{!! Form::label('quotation_template', trans('qtemplate.quotation_template'), ['class' => 'control-label']) !!}
{{ $qtemplate->quotation_template }}
{!! Form::label('quotation_duration', trans('qtemplate.quotation_duration'), ['class' => 'control-label']) !!}
{{ $qtemplate->quotation_duration }}
@if(isset($qtemplate) && $qtemplate->qTemplateProducts->count()>0) @foreach($qtemplate->qTemplateProducts as $index => $variants) @endforeach @endif
{{trans('qtemplate.product')}} {{trans('qtemplate.description')}} {{trans('qtemplate.quantity')}} {{trans('qtemplate.unit_price')}} {{trans('qtemplate.subtotal')}}
{{$variants->product_name}} {{$variants->description}} {{isset($variants->pivot->quantity)?$variants->pivot->quantity:null}} {{isset($variants->pivot->price)?$variants->pivot->price:null}} {{isset($variants->pivot->quantity)?($variants->pivot->quantity*$variants->pivot->price):null}}
{!! Form::label('total', trans('qtemplate.total'), ['class' => 'control-label']) !!}
{{ $qtemplate->total }}
{!! Form::label('tax_amount', trans('qtemplate.tax_amount'), ['class' => 'control-label']) !!}
{{ $qtemplate->tax_amount }}
{!! Form::label('grand_total', trans('qtemplate.grand_total'), ['class' => 'control-label']) !!}
{{ $qtemplate->grand_total }}
{{ $qtemplate->terms_and_conditions }}
@if (@$action == 'show') {{trans('table.close')}} @else {{trans('table.back')}} @endif
@endif