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

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

{!! 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'),['readonly'=>'readonly','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'),['readonly'=>'readonly','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'),['readonly'=>'readonly','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'),['readonly'=>'readonly','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'),['readonly'=>'readonly','class'=>'form-control','placeholder'=>trans('messages.phone')])!!}
{!! 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'),['readonly'=>'readonly','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'),['disabled'=>'disabled','readonly'=>'readonly','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'),['disabled'=>'disabled','readonly'=>'readonly','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'),['disabled'=>'disabled','readonly'=>'readonly','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'] +$cities, isset($franchise->city) ? $franchise->city : old('city_id'),['disabled'=>'disabled','readonly'=>'readonly','class'=>'form-control input-xlarge select2me','placeholder'=>trans('messages.select_one')])!!}
@endif
@foreach($col_heads as $col_head) @if($col_head == 'Option') @else @endif @endforeach
{!! $col_head !!}{{ $col_head }}
@endsection @section('scripts') @section('scripts') @endsection