@extends('layouts.index') @section('title') Asset Report @endsection @section('css') @endsection @section('content')

Asset Report

@php $increment = 1; @endphp @foreach($asset as $data) @endforeach
No Name of Asset Category Location Total Borrowed Option
{{ $increment++ }} {{ $data->name }} {{ $data->ref_asset_categories->category_name }}

{{ isset($data->ref_warehouse->location_name) ? $data->ref_warehouse->location_name : '-' }}

@if($data->borrowed_asset_count->count() >= 1) {{ $data->borrowed_asset_count->count() }} @else - @endif Detail
@endsection @section('js') @endsection