@extends('admin.promoters.edit.layout') @section('main_content')

{{ trans('admin.promoters.edit.title') }}

@include('flash::message') {!! Form::model($promoter, ['route' => ['admin.promoters.edit.promoter_information.post', $promoter->id], 'id' => 'admin-edit-promoter-info-form', 'class' => 'margin-right', 'method' => 'post', 'files' => true]) !!} @if ($errors->any())
{{ trans('promoters.create.errors') }}
@endif
{{ trans('promoters.general_information') }}
{{ Form::checkbox('is_premium', 1, null, ['id' => 'is-premium']) }} {{ Form::label('is-premium', trans('promoters.is_premium')) }} @if ($errors->has('is_premium')) {{ $errors->first('is_premium') }} @endif
{{ displayPromoterPremiumFieldIcon($premiumFields, 'is_verified') }} {{ Form::checkbox('is_verified', 1, null, ['id' => 'is-verified']) }} {{ Form::label('is-verified', trans('promoters.is_verified')) }} @if ($errors->has('is_verified')) {{ $errors->first('is_verified') }} @endif
{{ $promoter->type->label }}
{{ Form::label('name', trans('promoters.name'), ['class' => 'control-label']) }} {{ Form::text('name', null, ['class' => 'form-control']) }} @if ($errors->has('name')) {{ $errors->first('name') }} @endif
{{-- promoterTypeCode field is used for validation --}} {{ Form::hidden('promoterTypeCode', $promoter->type->code, ['id' => 'promoter-type-code']) }} {{ Form::hidden('latitude', null, ['id' => 'latitude']) }} {{ Form::hidden('longitude', null, ['id' => 'longitude']) }} {{ Form::hidden('street', null, ['id' => 'route']) }} {{ Form::hidden('street_number', null, ['id' => 'street_number']) }}
{{ Form::submit(trans('promoters.update.button'), ['class' => 'btn btn-success']) }}
{{ Form::close() }}
@endsection @section('bottom_js') @parent @endsection