Edit Subscription Bill

{{ Form::open( [ 'method'=> 'POST', 'url' => route('save.subscription.bill.edit'), 'onsubmit'=>'return saveSubscriptionBillEdit(this)','id'=> 'bills_save', 'enctype' => 'multipart/form-data']) }} {{Form::hidden('id',@$bill->id)}}
{{Form::text( 'account_name', ((@$bill->id) ? @$bill->account_name : ''), [ "class" => "form-control", "placeholder" => "" ]) }}
{{Form::text( 'email', ((@$bill->id) ? @$bill->email : ''), [ "class" => "form-control", "placeholder" => "" ]) }}
{{Form::text( 'branch_name', ((@$bill->id) ? @$bill->branch_name : ''), [ "class" => "form-control", "placeholder" => "" ]) }}
{{Form::text( 'branch_address', ((@$bill->id) ? @$bill->branch_address : ''), [ "class" => "form-control", "placeholder" => "" ]) }}
{{Form::text( 'branch_gst', ((@$bill->id) ? @$bill->branch_gst : ''), [ "class" => "form-control", "placeholder" => "" ]) }}
{{ Form::radio( "type", 0, (((@$bill->id) && (@$bill->type == '0')) ? true : false ), [ 'id' => 'status_Active', 'class'=>'minimal', ]) }} {{ Form::radio( "type", 1, (((@$bill->id) && (@$bill->type == '1')) ? true : false ), [ 'id' => 'status_Inactive', 'class'=>'minimal', ]) }}
{{Form::text( 'start_date', ((@$bill->id) ? date(LaraCore::setting('date_format'),strtotime(@$bill->start_date)) : ''), [ "class" => "form-control date_input", "placeholder" => "", "id" => 'start_date' ]) }}
{{Form::text( 'end_date', ((@$bill->id) ? date(LaraCore::setting('date_format'),strtotime(@$bill->end_date)) : ''), [ "class" => "form-control date_input", "placeholder" => "", "id" => 'end_date' ]) }}
{{Form::text( 'amount', ((@$bill->id) ? @$bill->amount : ''), [ "class" => "form-control", "placeholder" => "" ]) }}
{{Form::text( 'receive_amount', ((@$bill->id) ? @$bill->receive_amount : ''), [ "class" => "form-control", "placeholder" => "" ]) }}
{{Form::text( 'installation', ((@$bill->id) ? @$bill->installation : ''), [ "class" => "form-control", "placeholder" => "" ]) }}
{{Form::text( 'tax', ((@$bill->id) ? @$bill->tax : ''), [ "class" => "form-control", "placeholder" => "" ]) }}
{{Form::text( 'discount', ((@$bill->id) ? @$bill->discount : ''), [ "class" => "form-control", "placeholder" => "" ]) }}
{{Form::text( 'due_date', ((@$bill->id) ? date(LaraCore::setting('date_format'),strtotime(@$bill->due_date)) : ''), [ "class" => "form-control date_input", "placeholder" => "", "id" => 'due_date' ]) }}
{{ Form::select( "status", $status, $selectedStatus, [ 'class' => 'form-control', ] ) }}
{{Form::textarea('comments', @$selectedComments,['class'=>'form-control', 'placeholder' => '', 'rows' => 3, 'cols' => 40]) }}
{{ Form::close() }}