{{ (@$bills) ? 'Edit Bill' : 'Add Bill' }}

{{ Form::open( [ 'method'=> 'POST', 'url' => route('bills.store'), 'id'=> 'bills_save', 'enctype' => 'multipart/form-data']) }} {{Form::hidden('id',@$bills->id) }}
{{Form::text( 'billno', ((@$bills->id) ? @$bills->billno : $billno), [ "class" => "form-control", "placeholder" => "" ]) }}
{{ Form::select( 'clientid', @$clients_options, ((@$bills->id) ? @$bills->clientid : ""), [ "class" => "form-control", ] ) }}
{{Form::text( 'amount', ((@$bills->id) ? @$bills->amount : ""), [ "class" => "form-control", "placeholder" => "e.g 1234" ]) }}
{{ Form::select( "month", $month, ((@$bills->id) ? @$bills->month : '2017-07'), [ 'class' => 'form-control', ] ) }}
{{Form::text( 'cgstpercent', ((@$bills->id) ? @$bills->cgstpercent : $cgst), [ "class" => "form-control", "placeholder" => "" ]) }}
{{Form::text( 'sgstpercent', ((@$bills->id) ? @$bills->sgstpercent : $sgst), [ "class" => "form-control", "placeholder" => "" ]) }}
{{Form::text( 'igstpercent', ((@$bills->id) ? @$bills->igstpercent : $igst), [ "class" => "form-control", "placeholder" => "" ]) }}
{{Form::text( 'fchpercent', ((@$bills->id) ? @$bills->fchpercent : $fch), [ "class" => "form-control", "placeholder" => "" ]) }}
{{ Form::close() }}