@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

Use this tool to import asset history you may have in CSV format. This information likely will be extracted from your previous asset management system.

Asset history is defined as a checkout and subsequent checkin that has happened in the past. The assets and users MUST already exist in SNIPE, 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 full name you provide, based on the username format you configured in the Admin > General Settings.

Fields included in the CSV must match exactly these header values: Asset Tag, Checkout Date, Checkin Date, Full Name. Any additional fields will be ignored.

@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