@extends('app-new') @push('head-script') @endpush @push('content-header') @endpush @section('content') {!! Form::model($device, ['method' => isset($device) && $device->id ? 'put' : 'post']) !!}
{{trans('device.device_detail')}}
{{trans('device.enter_device_detail')}}
{!! Form::text('serial_number', isset($workman) && $workman->serial_number ? $workman->serial_number : old('serial_number'), ['class' => 'form-control', 'id' => 'serial_number']) !!} {!! $errors->first('serial_number', '')!!}
{!! $errors->first('status', '')!!}
{!! Form::select('device_category', $deviceCategories, isset($device) && $device->device_category ? $device->device_category : old('device_category'), ['class' => 'form-control select2', 'id' => 'device_category']) !!} {!! $errors->first('device_category', '')!!}
{!! Form::select('device_type_id', $deviceTypes, isset($device) && $device->device_type_id ? $device->device_type_id : old('device_type_id'), ['class' => 'form-control select2', 'id' => 'device_type_id']) !!} {!! $errors->first('device_type_id', '')!!}
{!! $errors->first('device_sub_type', '')!!}
{!! Form::text('name', isset($device) && $device->name ? $device->name : old('name'), ['class' => 'form-control', 'id' => 'name']) !!} {!! $errors->first('name', '')!!}
{{--
{!! Form::email('email', isset($device) && $device->email ? $device->email : old('email'), ['class' => 'form-control', 'id' => 'email']) !!} {!! $errors->first('email', '')!!}
--}}
{!! Form::text('brand_name', isset($device) && $device->brand_name ? $device->brand_name : old('brand_name'), ['class' => 'form-control', 'id' => 'brand_name']) !!} {!! $errors->first('brand_name', '')!!}
{!! Form::text('product_name', isset($device) && $device->product_name ? $device->product_name : old('product_name'), ['class' => 'form-control', 'id' => 'product_name']) !!} {!! $errors->first('product_name', '')!!}
{!! Form::hidden('checkin_validity_key', 'checkin_validity', ['id' => 'checkin_validity_key']) !!} {!! Form::number('checkin_validity', isset($deviceConfig['checkin_validity']) ? $deviceConfig['checkin_validity'] : old('checkin_validity'), ['class' => 'form-control', 'id' => 'checkin_validity']) !!} {!! $errors->first('checkin_validity', '')!!}
{!! Form::hidden('checkout_validity_key', 'checkout_validity', ['id' => 'checkout_validity_key']) !!} {!! Form::number('checkout_validity', isset($deviceConfig['checkout_validity']) ? $deviceConfig['checkout_validity'] : old('checkout_validity'), ['class' => 'form-control', 'id' => 'checkout_validity']) !!} {!! $errors->first('checkout_validity', '')!!}
is_email_alert) || old('is_email_alert') == 1) checked @endif>
{{trans('device.location_detail')}}
{{trans('device.enter_location_detail')}}
{!! $errors->first('location_id', '')!!}
{!! $errors->first('sub_location_id', '')!!}
{!! $errors->first('manager_id', '') !!}
{!! Form::close() !!} @endsection @push('footer-script') @endpush