@extends('admin.layouts.master') @section('title') @if(!$edit_mode) New Rent Plan @else Edit Rent Plan: {{ $plan->name }} @endif @stop @section('content')
@if(!$edit_mode) New Rent Plan @else Edit Rent Plan: {{ $plan->name }} @endif
{{ Form::open(array('url' => 'admin/rent-plans/save' ,'class'=>'form-horizontal form-bordered form-row-stripped')) }} {{ Form::hidden('edit_mode', $edit_mode) }} @if($edit_mode) {{ Form::hidden('plan_id', $plan->id) }} @endif
{{ Form::label('name', 'Name') }}
{{ Form::text('name', $edit_mode ? $plan->name : Input::get('name'), array('class' => 'form-control input-lg')) }}
{{ Form::label('duration', 'Duration (Hour)') }}
{{ Form::text('duration', $edit_mode ? $plan->duration : Input::get('duration'), array('class' => 'form-control input-lg')) }}
{{ Form::label('is_active', 'Is Active') }}
{{ Form::select('is_active', array(1 => 'Yes', 0 => 'No'), $edit_mode ? $plan->is_active : Input::get('is_active'), array('class' => 'form-control input-lg')) }}
{{ Form::submit('Save', array('class' => 'btn btn-primary btn-lg')) }}
{{ Form::close() }}
@stop