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

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

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

{{ trans('admin/consumables/general.about_consumables_title') }}

{{ trans('admin/consumables/general.about_consumables_text') }}

@stop