@if ($enableMassActions)
|
@endif
@foreach ($columns as $column)
@php
$columnIndex = explode('.', $column['index']);
$columnIndex = end($columnIndex);
@endphp
@if (isset($column['wrapper']))
@if (isset($column['closure']) && $column['closure'] == true)
{!! $column['wrapper']($record) !!} |
@else
{{ $column['wrapper']($record) }} |
@endif
@else
@if ($column['type'] == 'price')
@if (isset($column['currencyCode']))
{{ core()->formatPrice($record->{$columnIndex}, $column['currencyCode']) }} |
@else
{{ core()->formatBasePrice($record->{$columnIndex}) }} |
@endif
@else
{{ $record->{$columnIndex} }} |
@endif
@endif
@endforeach
@if ($enableActions)
@foreach ($actions as $action)
@php
$toDisplay = (isset($action['condition']) && gettype($action['condition']) == 'object') ? $action['condition']($record) : true;
@endphp
@if ($toDisplay)
@endif
@endforeach
|
@endif
@endforeach
@else