@extends('layouts.app') @section('title', __('Master Dashboard')) @section('content')
@include('layouts.master-left-menu')
{!! Form::model($pricing, ['id' => 'pricing_form','class'=>'row','autocomplete'=>'off','method' => 'PATCH','route' => ['pricings.update', $pricing->id]]) !!}
{!! Form::select('price_type',pricingfor(),null, array('id' => 'price_type', 'class' => 'form-control select2', 'placeholder' => trans('Select'),'required','onChange'=>'pricingType(this.value)')) !!} @if ($errors->has('price_type')) {{ $errors->first('price_type') }} @endif
{!! Form::text('title', NULL, array('id' => 'title','required', 'class' => 'form-control', 'placeholder' => trans('Title'))) !!} @if ($errors->has('title')) {{ $errors->first('title') }} @endif
{!! Form::text('price', NULL, array('id' => 'price','required', 'class' => 'form-control', 'placeholder' => trans('00.00'))) !!} @if ($errors->has('price')) {{ $errors->first('price') }} @endif
{!! Form::select('country',$country,null, array('id' => 'country', 'class' => 'form-control select2', 'placeholder' => trans('Select Country'),'required')) !!} @if ($errors->has('country')) {{ $errors->first('country') }} @endif
@if($pricing->price_type==1 || $pricing->price_type==3) @php $display="display:block"; $reque="required"; @endphp @else @php $display="display:none"; $reque=""; @endphp @endif
{!! Form::select('subsMonth',subscription(),null, array('id' => 'subsMonth', 'class' => 'form-control select2', 'placeholder' => trans('Select Month'),$reque)) !!} @if ($errors->has('subsMonth')) {{ $errors->first('subsMonth') }} @endif
@if($pricing->price_type==1) @php $displays="display:block"; $reques="required"; @endphp @else @php $displays="display:none"; $reques=""; @endphp @endif
{!! Form::text('perStudent', NULL, array('id' => 'perStudent',$reques, 'class' => 'form-control', 'placeholder' => trans('0.0'))) !!} @if ($errors->has('perStudent')) {{ $errors->first('perStudent') }} @endif
{!! Form::textarea('details', NULL, array('id' => 'details','required', 'class' => 'form-control f-address', 'placeholder' => trans('Write pricing details ...'),'rows'=>'5')) !!} @if ($errors->has('details')) {{ $errors->first('details') }} @endif
{!! Form::close() !!}
@endsection