@extends('layout.user') @section('content')
Name | Brand | Model | Serial No. | Qty | Price (ea.) | Age (Yr/Mo) | |||||
---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@if(isset($item->photos[0]))
@if (file_exists(public_path($item->photos[0]?->compressed_image_path)))
|
{{-- {{$item->item_name ?? \App\AppConstants::EMPTY_LABEL}} | --}}@if(strlen($item->item_name) > 0) {{strlen($item->item_name) > \App\AppConstants::ITEM_NAME_LENGTH ? substr($item->item_name,0,\App\AppConstants::ITEM_NAME_LENGTH )."..." : $item->item_name}} @else {{\App\AppConstants::EMPTY_LABEL}} @endif | {{$item->brand ?? \App\AppConstants::EMPTY_LABEL}} | {{$item->model ?? \App\AppConstants::EMPTY_LABEL}} | {{$item->serial_number ?? \App\AppConstants::EMPTY_LABEL}} | {{$item->quantity_lost ?? \App\AppConstants::EMPTY_LABEL}} | {{$item->cost_replace ?? \App\AppConstants::EMPTY_LABEL}} | @if(isset($item->age_year) > 0) {{$item->age_year ?? \App\AppConstants::EMPTY_LABEL}} / {{$item->age_month ?? \App\AppConstants::EMPTY_LABEL}} @endif |