@extends('adminlte::page')
@section('content_header')
@section('plugins.Datatables', true)
Productos
@stop
@section('content')
{{-- Setup data for datatables --}}
@php
$heads = [
'Id',
'Producto',
'Valor',
'Tipo Distribución',
'Acciones'
];
$btnEdit = '';
$btnShow = '';
$config = [
'data' => $productos,
'order' => [[1, 'asc']],
'columns' => [null, null, null, null,['orderable' => true]],
];
@endphp
@if(session()->has('success'))
{{session()->get('success')}}
@endif
@if(session()->has('danger'))
{{session()->get('danger')}}
@endif
@foreach($config['data'] as $row)
| {{$row->producto_id}} |
{{$row->producto_glosa}} |
${{number_format($row->producto_valor,0,",",".")}} |
{{$row->tipo_cliente_glosa}} |
{{-- --}}
|
@endforeach
@csrf
@stop