@extends('admin.layouts.master') @section('content')
{!! Form::model($row,[ 'method' => 'PUT', 'route' => [\App\Helpers\Helper::adminPrefix() . '.update', $row], 'name' => 'user-form', 'id' => 'user-form', 'autocomplete' => 'off' ]) !!}

{{ __('Edit') }} {{ \App\Helpers\Helper::pagePrefix(2) }}

Cancel
{!! Form::label('carrier_id', 'Carrier :', ['class' => 'control-label']) !!} {!! Form::select('carrier_id', \App\Helpers\Helper::carrier(false), old('carrier_id', $row->carrier_id), ['class' => $errors->has('carrier_id') ? 'form-control is-invalid' : 'form-control', 'id' => 'carrier_id']) !!} @if ($errors->has('carrier_id')) {{ $errors->first('carrier_id') }} @endif
{!! Form::label('service_id', 'Service ID :', ['class' => 'control-label']) !!} {!! Form::text('service_id', old('service_id', $row->service_id), ['class' => $errors->has('service_id') ? 'form-control is-invalid' : 'form-control', 'id' => 'service_id', 'placeholder' => 'Service ID']) !!} @if ($errors->has('service_id')) {{ $errors->first('service_id') }} @endif
{!! Form::label('tax', 'Tax :', ['class' => 'control-label']) !!} {!! Form::number('tax', old('tax', number_format($row->tax, 2)), ['class' => 'form-control', 'id' => 'tax', 'placeholder' => 'Service tax']) !!}
{!! Form::label('validity', 'Validity :', ['class' => 'control-label']) !!} {!! Form::number('validity', old('validity', $row->validity), ['class' => 'form-control', 'id' => 'validity', 'placeholder' => 'Service validity']) !!}
{!! Form::label('name', 'Name :', ['class' => 'control-label']) !!} {!! Form::text('name', old('name', $row->name), ['class' => $errors->has('name') ? 'form-control is-invalid' : 'form-control', 'id' => 'name', 'placeholder' => 'Service name']) !!} @if ($errors->has('name')) {{ $errors->first('name') }} @endif
{!! Form::label('price', 'Price :', ['class' => 'control-label']) !!} {!! Form::number('price', old('price', number_format($row->price, 2)), ['class' => 'form-control', 'id' => 'price', 'placeholder' => 'Service price']) !!}
{!! Form::label('mp_url', 'MP URL :', ['class' => 'control-label']) !!} {!! Form::text('mp_url', old('mp_url', $row->mp_url), ['class' => $errors->has('mp_url') ? 'form-control is-invalid' : 'form-control', 'id' => 'mp_url', 'placeholder' => 'Service MP URL']) !!} @if ($errors->has('mp_url')) {{ $errors->first('mp_url') }} @endif
{!! Form::label('status', 'Active :', ['class' => 'control-label']) !!}
{!! Form::radio('status', '1', ($row->active == 1 ? true : false), ['id' => 'statuson']) !!} {!! Form::label('statuson', 'Yes') !!}
{!! Form::radio('status', '0', ($row->active != 1 ? true : false), ['id' => 'statusoff']) !!} {!! Form::label('statusoff', 'No') !!}
{!! Form::close() !!}
@endsection