@extends('layouts.master') @section('title', 'Dashboard') @section('links') @endsection @section('content')
@if(Entrust::can('create_franchise'))

{!! trans('messages.add_new') !!} Franchises

{!! Form::open(['route' => 'franchises.store','role' => 'form', 'class'=>'franchises-form','id' => 'franchises-form','data-form-table' => 'franchises_table']) !!}
{!! Form::label('first_name',trans('messages.first_name'),['class' => 'control-label'])!!} {!! Form::input('text','first_name',old('first_name'),['class'=>'form-control','placeholder'=>trans('messages.first_name')])!!}
{!! Form::label('last_name',trans('messages.last_name'),['class' => 'control-label'])!!} {!! Form::input('text','last_name','',['class'=>'form-control','placeholder'=>trans('messages.last_name')])!!}
{!! Form::label('username',trans('messages.username'),['class' => 'control-label'])!!} {!! Form::input('text','username',old('username'),['class'=>'form-control','placeholder'=>trans('messages.username')])!!}
{!! Form::label('email',trans('messages.email'),['class' => 'control-label'])!!} {!! Form::input('text','email','',['class'=>'form-control','placeholder'=>trans('messages.email')])!!}
{!! Form::label('password',trans('messages.password'),['class' => 'control-label'])!!} {!! Form::input('password','password','',['class'=>'form-control','placeholder'=>trans('messages.password')])!!}
{!! Form::label('password_confirmation',trans('messages.confirm_password'),['class' => 'control-label'])!!} {!! Form::input('password','password_confirmation','',['class'=>'form-control','placeholder'=>trans('messages.confirm_password')])!!}
{{--
--}}
{!! Form::label('latitude',trans('Latitude'),['class' => 'control-label'])!!} {!! Form::input('latitude','latitude','',['readonly'=>'readonly','class'=>'form-control','id'=>'latclicked','placeholder'=>trans('Latitude')])!!}
{!! Form::label('latitude',trans('Latitude'),['class' => 'control-label'])!!} {!! Form::input('longitude','longitude','',['readonly'=>'readonly','class'=>'form-control','id'=>'longclicked','placeholder'=>trans('longitude')])!!}
{!! Form::label('franchise_name',trans('Franchises Name'),['class' => 'control-label'])!!} {!! Form::input('franchise_name','franchise_name','',['class'=>'form-control','placeholder'=>trans('Franchise Name')])!!}
{!! Form::label('organization',trans('organization'),['class' => 'control-label'])!!} {!! Form::select('organization', [null => 'Select organization'] + $packages, '',['class'=>'form-control input-xlarge select2me'])!!}
{!! Form::label('Country',trans('Country'),['class' => 'control-label'])!!} {!! Form::select('country_id', [null => 'Select Country'] + $country, '',['class'=>'form-control input-xlarge select2me'])!!}
{!! Form::label('State',trans('State'),['class' => 'control-label'])!!} {!! Form::select('state_id', [null => 'Select State'] +$state,'',['class'=>'form-control input-xlarge select2me','placeholder'=>trans('messages.select_one')])!!}
{!! Form::label('City',trans('City'),['class' => 'control-label'])!!} {!! Form::select('city_id', [null => 'Select City'] +$cities, '',['class'=>'form-control input-xlarge select2me','placeholder'=>trans('messages.select_one')])!!}
{!! Form::submit(isset($buttonText) ? $buttonText : trans('messages.save'),['class' => 'btn btn-primary pull-right']) !!} {!! Form::close() !!}
@endif
@endsection @section('scripts') @section('scripts') @endsection