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

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

{!! Form::model($franchise,['method' => 'PATCH','route' => ['franchises.update',$franchise ] ,'class' => 'user-form ']) !!}
{!! Form::label('first_name',trans('messages.first_name'),['class' => 'control-label'])!!} {!! Form::input('text','first_name',isset($franchise->first_name) ? $franchise->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',isset($franchise->last_name) ? $franchise->last_name : old('last_name'),['class'=>'form-control','placeholder'=>trans('messages.last_name')])!!}
{!! Form::label('username',trans('messages.username'),['class' => 'control-label'])!!} {!! Form::input('text','username',isset($franchise->username) ? $franchise->username : old('username'),['class'=>'form-control','placeholder'=>trans('messages.username')])!!}
{!! Form::label('email',trans('messages.email'),['class' => 'control-label'])!!} {!! Form::input('text','email',isset($franchise->email) ? $franchise->email : old('email'),['class'=>'form-control','placeholder'=>trans('messages.email')])!!}
{!! Form::label('phone',trans('messages.phone'),['class' => 'control-label'])!!} {!! Form::input('text','phone',isset($franchise->phone) ? $franchise->phone : old('phone'),['class'=>'form-control','placeholder'=>trans('messages.phone')])!!}
{{--
{!! 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',isset($franchise->latitude) ? $franchise->latitude : old('latitude'),['readonly'=>'readonly','class'=>'form-control','id'=>'latclicked','placeholder'=>trans('Latitude')])!!}
{!! Form::label('latitude',trans('Latitude'),['class' => 'control-label'])!!} {!! Form::input('longitude','longitude',isset($franchise->longitude) ? $franchise->longitude : old('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',isset($franchise->franchise_name) ? $franchise->franchise_name : old('franchise_name'),['class'=>'form-control','placeholder'=>trans('Franchise Name')])!!}
{!! Form::label('organization',trans('organization'),['class' => 'control-label'])!!} {!! Form::select('organization', [null => 'Select organization'] + $packages, isset($franchise->organization) ? $franchise->organization : old('organization_id'),['class'=>'form-control input-xlarge select2me'])!!}
{!! Form::label('Country',trans('Country'),['class' => 'control-label'])!!} {!! Form::select('country', [null => 'Select Country'] + $country,isset($franchise->country) ? $franchise->country : old('country_id'),['class'=>'form-control input-xlarge select2me'])!!}
{!! Form::label('State',trans('State'),['class' => 'control-label'])!!} {!! Form::select('state', [null => 'Select State'] +$state,isset($franchise->state) ? $franchise->state : old('state_id'),['class'=>'form-control input-xlarge select2me','placeholder'=>trans('messages.select_one')])!!}
{!! Form::label('City',trans('City'),['class' => 'control-label'])!!} {!! Form::select('city', [null => 'Select City'] +$city, isset($franchise->city) ? $franchise->city : old('city_id'),['class'=>'form-control input-xlarge select2me','placeholder'=>trans('messages.select_one')])!!}
{!! Form::submit(isset($buttonText) ? $buttonText : trans('messages.update'),['class' => 'btn btn-primary pull-right']) !!} {!! Form::close() !!}
@endif
@endsection @section('scripts') @section('scripts') @endsection