@extends('layouts.admin-simple') @section('title', 'View Return') @section('breadcrumb') @endsection @section('page-title')

{{ $return->return_number }}

{{ $return->project ? $return->project->project_name : '-' }}

@if($return->status == 'draft') @can('warehouse.fixed-asset-returns.process')
@csrf
@endcan @endif @if(in_array($return->status, ['draft', 'inspected'])) @can('warehouse.fixed-asset-returns.process')
@csrf
@endcan @endif print arrow_back Back
@endsection @section('content') @if(session('success'))
{{ session('success') }}
@endif
Return Details
Return #{{ $return->return_number }}
Project{{ $return->project ? $return->project->project_name : '-' }}
Return Date{{ $return->return_date ? $return->return_date->format('M d, Y') : '-' }}
Reason{{ $return->reason ?? '-' }}
Returned By{{ $return->returnedBy ? $return->returnedBy->name : '-' }}
Inspected By{{ $return->inspectedBy ? $return->inspectedBy->name : '-' }}
Completed By{{ $return->completedBy ? $return->completedBy->name : '-' }}
Status{{ ucfirst($return->status) }}
Returned Assets
@foreach($return->items as $i => $item) @endforeach
#Asset CodeAsset NameCategoryConditionNeeds MaintenanceNotes
{{ $i + 1 }} {{ $item->fixedAsset ? $item->fixedAsset->asset_code : '-' }} {{ $item->fixedAsset ? $item->fixedAsset->asset_name : '-' }} {{ $item->fixedAsset && $item->fixedAsset->category ? $item->fixedAsset->category->category_name : '-' }} {{ ucfirst($item->condition_on_return ?? $item->condition_after ?? '-') }} {!! $item->needs_maintenance ? 'Yes' : 'No' !!} {{ $item->condition_notes ?? '-' }}
@endsection