@extends('metronic.base')
@section('extracss')
@endsection
@section('extrajs')
    
@endsection
@section('titulo')
    Orden de compra
@endsection
@section('content')
    @include('sessions')
    
Ordenes de compra
    
    
        LAS ORDENES DE COMPRA PODEMOS ASOCIAR TANTO UN PRODUCTO INTERNO COMO PRODUCTOS DE VENTA
    
    @component('components.table')
        @slot('thead')
            {{ __('Codigo') }} | 
            {{ __('Estado') }} | 
            {{ __('Proveedor') }} | 
            {{ __('Creada por') }} | 
            {{ __('Fecha de creación') }} | 
            {{ __('Acciones') }} | 
            {{ __('ID') }} | 
        @endslot
        @slot('tfoot')
             | 
             | 
             | 
             | 
             | 
             | 
             | 
        @endslot
    @endcomponent
    {{-- @if (count($ordenes) > 0)
        
            
                
                    | # | 
                    Codigo | 
                    Estado | 
                    Proveedor | 
                    Creada por | 
                    Editar | 
                
            
            
                @foreach ($ordenes as $key => $item)
                     {{ $key + 1 }}  | 
                    {{ $item->codigo }} | 
                    {{ $item->estado }} | 
                    {{ $item->proveedor->codProveedor }} {{ $item->proveedor->nombreProveedor }} | 
                    {{ $item->creador->name }} | 
                    
                        @if ($item->estado == 'EN PROCESO')
                            
                        @else
                            
                        @endif
                        
                     | 
                    
                @endforeach
            
        
    @else
        
            ¡Opps! Parece que no tienes ninguna orden de compra registrada.
        
    @endif --}}
@endsection