@extends('layouts.app') @section('content')
@include('layouts.partials.session')
@if (json_decode(Auth::user()->permisos)->puede_ver_ajustes_inventario == 'on') @if($ajustes->count() > 0)
@foreach($ajustes as $ajuste) @endforeach
ID Usuario Descripcion Fecha del ajuste Fecha de registro Cantidad de productos Accion
{{$ajuste->id}}
{{$ajuste->user->name}}
{{$ajuste->descripcion}} {{\Carbon\Carbon::parse($ajuste->fecha_ajuste)->format('d/m/Y')}} @if($ajuste->created_at == null) ... @else {{\Carbon\Carbon::parse($ajuste->created_at)->format('d/m/Y')}} @endif {{ $ajuste->cantidad }}
@if (Auth::user()->is_admin == 'Si') @endif
{{$ajustes->links()}}
@else
No hay ajustes de inventario.

@endif @else
No puedes ver esta información.

@endif
@endsection @section('scripts') @endsection