@forelse($csvData as $csvData)
<tr id="added-count-{{$csvData['assetData']['count_add']}}">
	<td>{{ $loop->iteration }}</td>
	<td>{{$csvData['assetData']['po_id']}}</td>
	<td>{{optional(\App\Models\Vendor::find($csvData['assetData']['vendor_id']))->name}}</td>
	<td>{{\App\Models\Location::find($csvData['assetData']['location_id'])->room_name}}</td>
	<td>{{\App\Models\AssetType::find($csvData['assetData']['asset_type_id'])->name}}</td>
	<td>
		@if($csvData['assetData']['make_and_model_id'])
		{{\App\Models\MakeAndModel::find($csvData['assetData']['make_and_model_id'])->manufacturer->name.' '.
		\App\Models\MakeAndModel::find($csvData['assetData']['make_and_model_id'])->name}}
		@endif
	</td>
	<td>
		@if($csvData['assetData']['technical_spec_id'])
		{{\App\Models\TechnicalSpecs::find($csvData['assetData']['technical_spec_id'])->details}}
		@endif
	</td>
	<td>{{$csvData['assetData']['asset_tag']}}</td>
	<td>{{$csvData['assetData']['serial_no']}}</td>


	<td onclick="deleteRow('added-count-{{$csvData['assetData']['count_add']}}')"><i class="icon icon-delete-forever"></i></td>

	<input type="hidden" name="count" value="{{$csvData['assetData']['count_add']}}">
	<input type="hidden" name="location_id{{$csvData['assetData']['count_add']}}"
		value="{{$csvData['assetData']['location_id']}}">
	<input type="hidden" name="asset_type_id{{$csvData['assetData']['count_add']}}"
		value="{{$csvData['assetData']['asset_type_id']}}">
	<input type="hidden" class="asset-tag" name="asset_tag{{$csvData['assetData']['count_add']}}"
		value="{{$csvData['assetData']['asset_tag']}}">
	<input type="hidden" name="po_id{{$csvData['assetData']['count_add']}}" value="{{$csvData['assetData']['po_id']}}">
	<input type="hidden" name="technical_spec_id{{$csvData['assetData']['count_add']}}"
		value="{{$csvData['assetData']['technical_spec_id']}}">
	<input type="hidden" class="serial-no" name="serial_no{{$csvData['assetData']['count_add']}}"
		value="{{$csvData['assetData']['serial_no']}}">
	<input type="hidden" name="ticket_no{{$csvData['assetData']['count_add']}}"
		value="{{$csvData['assetData']['ticket_no']}}">
	<input type="hidden" name="make_and_model_id{{$csvData['assetData']['count_add']}}"
		value="{{$csvData['assetData']['make_and_model_id']}}">
	<input type="hidden" name="carrier_id{{$csvData['assetData']['count_add']}}"
		value="{{$csvData['assetData']['carrier_id']}}">
	<input type="hidden" name="imei{{$csvData['assetData']['count_add']}}" value="{{$csvData['assetData']['imei']}}">
	<input type="hidden" name="lease_start_date{{$csvData['assetData']['count_add']}}"
		value="{{$csvData['assetData']['lease_start_date']}}">
	<input type="hidden" name="lease_end_date{{$csvData['assetData']['count_add']}}"
		value="{{$csvData['assetData']['lease_end_date']}}">
	<input type="hidden" name="vendor_id{{$csvData['assetData']['count_add']}}"
		value="{{$csvData['assetData']['vendor_id']}}">
		<input type="hidden" name="asset_tracking_id{{$csvData['assetData']['count_add']}}"
		value="{{$csvData['assetData']['asset_tracking_id']}}">
	<input type="hidden" name="warranty_end_date{{$csvData['assetData']['count_add']}}"
		value="{{$csvData['assetData']['warranty_end_date']}}">
	<input type="hidden" name="asset_original_value{{$csvData['assetData']['count_add']}}"
		value="{{$csvData['assetData']['asset_original_value']}}">

</tr>
@empty
@endforelse