@php $settings = \App\Models\Setting::first(); if(!$settings){ $settings = []; } @endphp @if($route == 'movements' && Auth::user()->role == 'reseller') @if($settings->allow_reseller_ae_movements == 1) Nuevo @endif @else Nuevo @endif @if(array_key_exists('type', $columns[0]) and $columns[0]['type'] == 'check')
@endif| @if(array_key_exists('type', $col) and $col['type'] == 'check') @else {{$col['title']}} @endif | @endforeachActions | @foreach($data as $d)
|---|---|
|
@switch($type)
@case('text')
@if($d->$key)
{{$d->$key}}
@else
-
@endif
@break
@case('currency')
{{$col['data']['symbol']}} {{number_format($d->$key,2,',','.')}}
@break
@case('img')
@if(!empty($d->$key))
|
@endforeach
@if($route == 'movements' && Auth::user()->role == 'reseller') @if($settings->allow_reseller_ae_movements == 1) @include('admin.partials.actions',[ 'route'=>$route, 'id' => $d->id ]) @endif @else @include('admin.partials.actions',[ 'route'=>$route, 'id' => $d->id ]) @endif |