@extends('template.layoutAdmin', ['activeButton' => 'inventario']) @section('style') @endsection @section('title') {{ trans('inventario.inventario') }} @endsection @section('cabecera')

{{ trans('inventario.inventarios') }} {{ trans('inventario.mensajeAyuda') }}

@endsection @section('contenido')
@if (Session::has('message')) @endif @if (Session::has('message_error')) @endif

{{ trans('inventario.lista_de_inventarios') }}

{{ trans('inventario.procesos') }} @if (request()->all() != null) @endif
{{-- {{ dd($inventarios[155]->funInventarioTags->funTag[0]->idTag) }} --}}
{{-- --}} @foreach ($bodegas as $bodega) @endforeach @foreach ($tags as $tag) @if (count($inventarios) > 0) @foreach ($inventarios as $inventario) @if (!empty($inventario->funInventarioTags->funTag[0])) @if ($inventario->funInventarioTags->funTag[0]->idTag == $tag->idTag) @if (isset($inventario->funInventarioTags->funTag[0])) @else @endif @foreach ($bodegas as $bodega) @endforeach @if (isset($inventario->funUnidad)) @else @endif @endif @endif @endforeach @else @endif @endforeach @if (count($inventarios) > 0) @foreach ($inventarios as $inventario) @if (empty($inventario->funInventarioTags->funTag[0])) @foreach ($inventario->existenciasBodega as $existBodg) @endforeach @endif @endforeach @else @endif
{{ $tag->nombre }}
Categoria {{ trans('inventario.nombre') }}{{ $bodega->nombre }} {{ trans('inventario.existencia_unidad') }} {{ trans('inventario.existencia_paquete') }} {{ trans('inventario.valor') }} {{ trans('inventario.valorTotal') }} {{ trans('inventario.estado') }} {{ trans('inventario.opciones') }}
{{ $inventario->funInventarioTags->funTag[0]->nombre }} No tiene categoriass{{ $inventario->presentacion }} @foreach ($inventario->relExistenciaBodega as $existBodg) @if (isset($existBodg->existenciaUnidad)) @if ($existBodg->idBodega == $bodega->idBodega && $existBodg->existenciaUnidad != null) {{ $existBodg->existenciaUnidad }} @else {{-- @if ($existBodg->existenciaUnidad == null) 0 @endif --}} @endif @endif @endforeach {{ $inventario->funForma->nombre }} {{ $inventario->existenciaUnidad }} {{ $inventario->funForma->nombre }}{{ round($inventario->existenciaPaq, 2) . ' ' . ($inventario->fraccionado == 0 ? $inventario->funForma->nombre : $inventario->funUnidad->nombre) }} {{ round($inventario->existenciaPaq, 2) . ' ' . ($inventario->fraccionado == 0 ? '' : '') }} {{ App\Helpers\monedaH::getCurrentSimbol() }} {{ $precioTotal[$inventario->idInventario] }} {{ App\Helpers\monedaH::getCurrentSimbol() }} {{ $precioTotalProductoConjunto[$inventario->idInventario] }} @if ($inventario->state == 1) {{ trans('inventario.activo') }} @elseif($inventario->state == 0) {{ trans('inventario.inactivo') }} @endif @if ($inventario->state == 3) {{ trans('inventario.agotado') }} @endif
@csrf @method('PUT')
{{ trans('inventario.no_hay_registros_') }}
No tiene categoria {{ $inventario->presentacion }} {{ $existBodg->existenciaUnidad }} @if ($inventario->fraccionado == 1) ({{ round($existBodg->existenciaPaq, 2) }}) @endif {{ $inventario->existenciaUnidad }} {{ $inventario->fraccionado == 0 ? $inventario->funForma->nombre : $inventario->funUnidad->nombre }} {{ round($inventario->existenciaPaq, 2) . ' ' . $inventario->funForma->nombre }} {{ App\Helpers\monedaH::getCurrentSimbol() }} {{ $precioTotal[$inventario->idInventario] }} {{ App\Helpers\monedaH::getCurrentSimbol() }} {{ $precioTotalProductoConjunto[$inventario->idInventario] }} @if ($inventario->state == 1) {{ trans('inventario.activo') }} @elseif($inventario->state == 0) {{ trans('inventario.inactivo') }} @endif @if ($inventario->state == 3) {{ trans('inventario.agotado') }} @endif
@csrf @method('PUT')
{{ trans('inventario.no_hay_registros_') }}
{{-- -Modal Editar --}}

Valor total del inventario: {{ App\Helpers\monedaH::getCurrentSimbol() }} {{ $precioTotalTodo }}

{{-- Ver Rangos de Precios --}} {{-- Ver Rangos de Precios --}} @endsection @section('js') @endsection