@extends('layouts.app') @section('content') @php $statuses = [''=>'Select', 1=>'Active', 0=>'Inactive']; @endphp @php $panel_type = [''=>'Select', "Poly Crystalline"=>'Poly Crystalline', "Mono Crystalline"=>'Mono Crystalline', "TOPCon" => "TOPCon", "HJT" => "HJT"]; @endphp @php $class = [''=>'Select', "Full Cell"=>'Full Cell', "Half Cut"=>'Half Cut']; @endphp @php $grade = [''=>'Select', "A"=>'A', "A2"=>'A2', "B" => "B"]; @endphp @php $wattage = [''=>'Select', "275"=>'275', "315"=>'315', "330" => "330", "335" => "335", "340" => "340", "400"=>"400", "405"=>"405", "415"=>"415", "500"=>"500", "550"=>"550", "580"=>"580", "585"=>"585", "590"=>"590", "600"=>"600", "620"=>"620", "650"=>"650", "710"=>"710"]; @endphp @php $efficiency = [''=>'Select', "17"=>'17', "18"=>'18', "21"=>'21', "23"=>'23']; @endphp @php $make = [''=>'Select', "Monofacial"=>'Monofacial', "Bi-facial"=>'Bi-facial', "G2G" => "G2G"]; @endphp @php $manufacturer_warranty = [''=>'Select', "10"=>'10', "12"=>'12', "15"=>'15']; @endphp @php $generation_guaranty = [''=>'Select', "20"=>'20', "25"=>'25', "27"=>'27', "30"=>'30', "32"=>"32"]; @endphp @php $insulation = [''=>'Select', "XLPE"=>'XLPE', "PVC"=>'PVC', "Armoured"=>'Armoured', "Flexible"=>"Flexible"]; @endphp @php $material = [''=>'Select', "Copper"=>'Copper', "Aluminium"=>'Aluminium']; @endphp @php $inverter_types = [''=>'Select', "Single 1P"=>'Single 1P', "Multi 3P"=>'Multi 3P', "Separate P/P"=>'Separate P/P', "DG Sync"=>'DG Sync', "Parallel"=>'Parallel', 'Daisychain'=>'Daisychain']; @endphp
{!! Form::open(['id' => 'programForm', 'name' => 'programForm', 'class' => 'form-horizontal', 'files' => true]) !!} {{ csrf_field() }} {!! Form::hidden('product_id', $product->id, ['id' => 'product_id']) !!}
{!! Form::text('name', $product->name, [ 'class' => 'form-control', 'id' => 'name', 'placeholder' => 'Enter Product name', 'required', ]) !!}
{!! Form::text('sku', $product->sku, [ 'class' => 'form-control', 'id' => 'sku', 'placeholder' => 'Enter Product SKU' ]) !!}
{{ Form::select('category', ['' => 'Select Category'] + $categories, $product->category_id, ['class' => 'standardSelect form-control', 'title' => 'Select category', 'id' => 'category', 'data-live-search' => 'true', 'data-size' => '5', 'required']) }}
{{ Form::select('brand_id', ['' => 'Select Brand'] + $brands, $product->brand_id, ['class' => 'standardSelect form-control', 'title' => 'Select Brand', 'id' => 'brand_id', 'data-live-search' => 'true', 'data-size' => '5', 'required']) }}
{{ Form::select('cost_centre', ['' => 'Select Category'] + $cost_centers, $product->cost_centre, ['class' => 'standardSelect form-control', 'title' => 'Select Cost Center', 'id' => 'cost_centre', 'data-live-search' => 'true', 'data-size' => '5', 'required']) }}
{{ Form::select('business_unit_id', [''=>'Select Business Unit']+$business_units, $product->business_unit_id, ['class'=>'standardSelect form-control', 'title'=>'Select Brand', 'id'=>'business_unit_id', 'data-live-search'=>'true', 'data-size'=>'5', 'required']) }}
{!! Form::textarea('description', $product->description, [ 'class' => 'form-control', 'id' => 'description', 'placeholder' => 'Enter description', 'rows' => 3, 'required', ]) !!}
{!! Form::text('price', $product->price, [ 'class' => 'form-control', 'id' => 'price', 'placeholder' => 'Enter Product MRP', 'required', ]) !!}
{{ Form::select('tax_id', [] + $taxes, $product->tax_id, ['class' => 'standardSelect form-control', 'title' => 'Select Tax', 'id' => 'tax_id']) }}
{{ Form::text('hsn_code', $product->hsn, ['class' => 'form-control', 'placeholder' => 'Enter HSN Code', 'id' => 'tax']) }}
@if(!empty($product->datasheet)) View Document @endif
{!! Form::select('status', $statuses, $product->status, [ 'class' => 'standardSelect form-control', 'title' => 'Select Status', 'data-live-search' => 'true', 'id' => 'status', ]) !!}
{!! Form::submit('Save Product', ['class' => 'btn btn-primary', 'id' => 'submitbtn']) !!} {!! Form::close() !!}
@stop @section('scripting') @stop