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

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

@if (\App\Models\Company::isCurrentUserAuthorized())
{{ Form::label('company_id', trans('general.company')) }}
{{ Form::select('company_id', $company_list , Input::old('company_id', $accessory->company_id), array('class'=>'select2', 'style'=>'width:100%')) }} {!! $errors->first('company_id', '
:message') !!}
@endif
{{ Form::label('name', trans('admin/accessories/general.accessory_name')) }}
{!! $errors->first('name', ' :message') !!}
{{ Form::label('category_id', trans('admin/accessories/general.accessory_category')) }}
{{ Form::select('category_id', $category_list , Input::old('category_id', $accessory->category_id), array('class'=>'select2', 'style'=>'width:100%')) }} {!! $errors->first('category_id', '
:message') !!}
{{ Form::label('location_id', trans('general.location')) }}
{{ Form::select('location_id', $location_list , Input::old('location_id', $accessory->location_id), array('class'=>'select2', 'style'=>'width:100%')) }} {!! $errors->first('location_id', '
:message') !!}
{{ Form::label('order_number', trans('admin/accessories/general.order')) }}
{!! $errors->first('order_number', ' :message') !!}
{{ Form::label('purchase_date', trans('admin/accessories/general.date')) }}
{!! $errors->first('purchase_date', ' :message') !!}
{{ Form::label('purchase_cost', trans('admin/accessories/general.cost')) }}
{{ \App\Models\Setting::first()->default_currency }} {!! $errors->first('purchase_cost', ' :message') !!}
{{ Form::label('qty', trans('admin/accessories/general.qty')) }}
{!! $errors->first('qty', ' :message') !!}
{{ Form::label('min_amt', trans('general.min_amt')) }}
{!! $errors->first('min_amt', ' :message') !!}
×

{{ trans('admin/accessories/general.about_accessories_title') }}

{{ trans('admin/accessories/general.about_accessories_text') }}

@stop