@extends('layouts/default') {{-- Page title --}} @section('title') @if ($component->id) {{ trans('admin/components/general.update') }} @else {{ trans('admin/components/general.create') }} @endif @parent @stop @section('header_right') {{ trans('general.back') }} @stop {{-- Page content --}} @section('content')

@if ($component->id) {{ $component->name }} @endif

{{ Form::label('name', trans('admin/components/table.title'), array('class' => 'col-md-3 control-label')) }}
{!! $errors->first('name', ' :message') !!}
{{ Form::label('category_id', trans('general.category'), array('class' => 'col-md-3 control-label')) }}
{{ Form::select('category_id', $category_list , Input::old('category_id', $component->category_id), array('class'=>'select2', 'style'=>'width:100%')) }} {!! $errors->first('category_id', ' :message') !!}
{{ Form::label('total_qty', trans('general.quantity'), array('class' => 'col-md-3 control-label')) }}
{!! $errors->first('total_qty', '
:message
') !!}
{{ Form::label('min_amt', trans('general.min_amt'), array('class' => 'col-md-3 control-label')) }}
{!! $errors->first('min_amt', ' :message') !!}
@if (\App\Models\Company::isCurrentUserAuthorized())
{{ Form::label('company_id', trans('general.company'), array('class' => 'col-md-3 control-label')) }}
{{ Form::select('company_id', $company_list , Input::old('company_id', $component->company_id), array('class'=>'select2', 'style'=>'width:350px')) }} {!! $errors->first('company_id', ' :message') !!}
@endif
{{ Form::label('location_id', trans('general.location'), array('class' => 'col-md-3 control-label')) }}
{{ Form::select('location_id', $location_list , Input::old('location_id', $component->location_id), array('class'=>'select2', 'style'=>'width:350px')) }} {!! $errors->first('location_id', ' :message') !!}
{{ Form::label('order_number', trans('admin/components/general.order'), array('class' => 'col-md-3 control-label')) }}
{!! $errors->first('order_number', ' :message') !!}
{{ Form::label('purchase_date', trans('admin/components/general.date'), array('class' => 'col-md-3 control-label')) }}
{!! $errors->first('purchase_date', ' :message') !!}
{{ Form::label('purchase_cost', trans('admin/components/general.cost'), array('class' => 'col-md-3 control-label')) }}
{{ \App\Models\Setting::first()->default_currency }} {!! $errors->first('purchase_cost', ' :message') !!}
×

{{ trans('admin/components/general.about_components_title') }}

{{ trans('admin/components/general.about_components_text') }}

@stop