@extends('layouts/default') {{-- Page title --}} @section('title') Import History @parent @stop @section('header_right') {{ trans('general.back') }} @stop {{-- Page content --}} @section('content') @if (isset($status)) @if (count($status['error']) > 0)
{{ count($status['error']) }} Error Messagess: Please see below for errors.
@endif
{{ count($status['success']) }} Success Messages: Please see below for details.
@endif
@if (Session::get('message'))

You have an error in your CSV file:
{{ Session::get('message') }}

@endif

Upload a CSV that contains asset history. The assets and users MUST already exist in the system, or they will be skipped. Matching assets for history import happens against the asset tag. We will try to find a matching user based on the user's name you provide, and the criteria you select below. If you do not select any criteria below, it will simply try to match on the username format you configured in the Admin > General Settings.

Fields included in the CSV must match the headers: Date, Tag, Name. Any additional fields will be ignored.

Date should be the checkout date. Tag should be the asset tag. Name should be the user's name (firstname lastname).

History should be ordered by date in ascending order.

@if (config('app.lock_passwords')===true) @else @endif
{{ Form::checkbox('match_firstnamelastname', '1', Input::old('match_firstnamelastname')) }} Try to match users by firstname.lastname (jane.smith) format
{{ Form::checkbox('match_flastname', '1', Input::old('match_flastname')) }} Try to match users by first initial last name (jsmith) format
{{ Form::checkbox('match_firstname', '1', Input::old('match_firstname')) }} Try to match users by first name (jane) format
{{ Form::checkbox('match_email', '1', Input::old('match_email')) }} Try to match users by email as username
@if (isset($status)) @if (count($status['error']) > 0)

{{ count($status['error']) }} Error Messages

@for ($x = 0; $x < count($status['error']); $x++) @foreach($status['error'][$x] as $object_type => $message) @endforeach @endfor
{{ ucwords($object_type) }} {{ key($message) }}: {{ $message[key($message)]['msg'] }}
@endif @if (count($status['success']) > 0)

{{ count($status['success']) }} Success Messages

@for ($x = 0; $x < count($status['success']); $x++) @foreach($status['success'][$x] as $object_type => $message) @endforeach @endfor
{{ ucwords($object_type) }} {{ key($message) }}: {{ $message[key($message)]['msg'] }}
@endif @endif
@stop