@extends('layouts.template') @section('content')
@if(session('msg_success')) @endif @if(session('msg_update')) @endif @if(session('msg_delete')) @endif

{{ Form::open(['url' =>'saveplan', 'class'=>'form-horizontal']) }}
{{ Form::label('p_code', 'Select Parent', array('class' =>'control-label col-sm-4 col-md-4 col-lg-4')) }}
{{ Form::label('plan_name', 'Plan/Package Name', array('class' =>'control-label col-sm-4 col-md-4 col-lg-4')) }}
{{ Form::text('plan_name', '', array('class' =>'form-control ')) }}
{{ Form::label('duration', 'Duration', array('class' =>'control-label col-sm-4 col-md-4 col-lg-4')) }}
{{ Form::number('duration', '', array('class' =>'form-control ','placeholder'=>'Define Month')) }}
{{ Form::label('amount', 'Amount', array('class' =>'control-label col-sm-4 col-md-4 col-lg-4')) }}
{{ Form::text('amount', '', array('class' =>'form-control ')) }}
{{ Form::label('status', 'Select Status', array('class' =>'control-label col-sm-4 col-md-4 col-lg-4')) }}
{{ Form::label('remarks', 'Remarks', array('class' =>'control-label col-sm-4 col-md-4 col-lg-4')) }}
{{ Form::textarea ('remarks', '', array('class' =>'form-control ')) }}
{{ Form::submit('Save', array('class' => 'btn btn-primary btn-block')) }}
{{ Form::close() }}
@if(!empty($plandata)) @foreach($plandata as $value) @endforeach
SL Plan Name Duration Amount Remarks Status Entry Date
{{ $i++}} {{ $value->plan_name}} {{ $value->duration}} {{ $value->amount}} {{ $value->remarks}} @if($value->status==1) Active @else Inactive @endif {{ $value->entry_date}}
@else
Sorry! There has no plan or package
@endif

@stop