@extends('adminlte::page') @section('title', 'Manage Movements') @section('content_header')

Movement History

@can('create movements') Record Movement @endcan
@stop @section('content') @if ($message = Session::get('success')) @endif
@foreach ($movements as $movement) @endforeach
Asset From To Date Moved By Action
{{ $movement->asset->name ?? 'N/A' }} {{ $movement->fromLocation->name ?? 'N/A' }} {{ $movement->toLocation->name ?? 'N/A' }} {{ $movement->movement_date->format('Y-m-d') }} {{ $movement->user->name ?? 'N/A' }}
@can('edit movements') @endcan @can('delete movements')
@csrf @method('DELETE')
@endcan
@stop