@if($movements->count())
@foreach($movements as $movement)
@if ($movement->before > $movement->after)
@endif
{{$movement->id}} |
{{$movement->before}} |
{{$movement->after}} |
{{$movement->reason}} |
@if ($movement->serial)
@foreach ($movement->serial as $value)
- {{$value}}
@endforeach
@endif
|
{{showDateTime($movement->created_at)}} |
@if ($movement->receiver_type == "App\User")
receiver_type::find($movement->receiver_id)->username)}}" target="_blank">
@elseif ($movement->receiver_type == "App\Location")
receiver_type::find($movement->receiver_id)->id)}}" target="_blank">
@endif
{{-- --}}
|
{{--
{{ Form::open(['method' => 'DELETE','route' => ['stock.destroy',$movement->id],'class' => 'form-inline','id' => 'inventory_rollback','data-table-refresh'=>'inventory-stock-movement-table']) }}
{{ Form::button('',['data-toggle' => 'tooltip', 'title' => 'Rollback', 'class' => 'btn btn-danger btn-xs', 'data-submit-alert-message' => 'Yes', 'type' => 'submit','data-alert-message' => trans('messages.action_confirm_message')]) }}
{{ Form::close() }}
| --}}
@endforeach
@else