@extends('layouts.master') @section('title', 'Edit Charging Station') @section('links') @endsection @section('content')

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

@if(Entrust::can('manage_stations'))
{!! Form::model($station,['method' => 'PATCH','route' => ['stations.update',$station] ,'class' => 'email-stations-form','id' => 'email-stations-form-edit','data-form-table' => 'stations_table','autocomplete'=>"off"]) !!}
{!! Form::input('latitude','latitude',isset($station->latitude) ? $station->latitude : '',['class'=>'form-control','id'=>'latclicked','placeholder'=>trans('Latitude')])!!}
{!! Form::input('longitude','longitude',isset($station->longitude) ? $station->longitude : '',['class'=>'form-control','id'=>'longclicked','placeholder'=>trans('longitude')])!!}
{!! Form::label('station_name','Station ',['class' => 'col-sm-4 form-control-label'])!!}
{!! Form::input('station_name','station_name',isset($station->station_name) ? $station->station_name : '',['class'=>'form-control','placeholder'=>'Station '.trans('messages.name')])!!}
{!! Form::label('location_name','Location ',['class' => 'col-sm-4 form-control-label'])!!}
{!! Form::input('location_name','location_name',isset($station->location_name) ? $station->location_name : '',['class'=>'form-control','placeholder'=>'Location '.trans('messages.name')])!!}
{!! Form::textarea('address',isset($station->address) ? $station->address : '',['class'=>'form-control', 'rows' => 2, 'cols' => 40]) !!}
{!! Form::label('state_id',trans('State'),['class' => 'col-sm-4 form-control-label'])!!}
{!! Form::select('state_id', [null => 'Select State'] +$state,$station->state_id,['class'=>'form-control select2-show-search input-xlarge select2me','data-placeholder'=>'Choose One'])!!}
{!! Form::label('city_id',trans('City'),['class' => 'col-sm-4 form-control-label'])!!}
{!! Form::select('city_id', [null => 'Select City']+$cities , $station->city_id,['class'=>'form-control select2-show-search input-xlarge select2me','data-placeholder'=>'Choose One'])!!}
{!! Form::label('application',trans('organization'),['class' => 'col-sm-4 form-control-label'])!!}
{!! Form::select('application', [null => 'Select packages']+$packages, $station->application,['id'=>'application','class'=>'form-control select2-show-search input-xlarge select2me'])!!}
{!! Form::label('franchise_id',trans('Franchise'),['class' => 'col-sm-4 form-control-label'])!!}
{!! Form::select('franchise_id', [null => 'Select Franchise']+$franchise_list, $station->created_by_id,['id'=>'franchise','class'=>'form-control select2-show-search input-xlarge select2me'])!!}
@php $taxes=json_decode($station->service_tax) @endphp @foreach($servicetax as $key=> $tax) {!! Form::label('tax',$tax->name,['class' => 'col-sm-2 form-control-label'])!!}
@endforeach
Double Click On The map To get latitude And longitude
{!! Form::label('opening_time','Opening Time ',['class' => 'col-sm-4 form-control-label'])!!}
{!! Form::input('opening_time','opening_time',isset($station->opening_time) ? $station->opening_time : '',['id'=>'opening_time','style'=>'width: 104%;','class'=>'form-control','placeholder'=>'Opening Time '])!!}
{!! Form::label('closing_time','Closing Time ',['class' => 'col-sm-4 form-control-label'])!!}
{!! Form::input('closing_time','closing_time',isset($station->closing_time) ? $station->closing_time : '',['id'=>'closing_time','style'=>'width: 104%;','class'=>'form-control','placeholder'=>'Closing Time '])!!}
{!! Form::close() !!}
@endif @endsection @section('scripts') @endsection