@extends('layouts.default') @include('plugins.datatables.default') @include('plugins.datatables.buttons') @include('plugins.parsley') @include('plugins.notifyjs') @include('plugins.moment') @if( isset($page['list_custom_js']) ) @push("include-js") @endpush @endif @section('content')

{{$page['title']}}

@stack('top_buttons') @if( isset( $page['addButton'] ) ) {{$page['addButton']['title']}} @endif @isset( $page['dataTable']['filter'] ) Filtro @endisset
@isset( $page['dataTable']['filter'] ) @endisset
@if( !isset($page['dataTable']['ajax']) ) @foreach( $page['dataTable']['column'] as $c ) @php $columnData[] = $c['data']; @endphp @endforeach @foreach( $data as $row ) @foreach( $row as $index=> $r ) @if ( in_array( $index, $columnData ) ) @endif @endforeach @endforeach @endif
{{$c['title']}}Ação
@if ($page['dataTable']['render']) {!! $page['dataTable']['render']( $row, $index, $r ) !!} @else {!! $r !!} @endif @foreach( $page['dataTable']['render']( $row, 'action' ) as $button ) @php $url = $button['url']; if( preg_match('/{(.*?)}/', $url, $match ) ){ $url = str_replace( '{'. $match[1] .'}', $row[$match[1]], $url ); } $icon = ""; if( $button['icon'] ) $icon = "" ; @endphp {!! $icon !!} {{ $button['title'] }} @endforeach @if( !array_key_exists('deleted_at',$row) or $row['deleted_at'] == '' ) @if( isset($page['dataTable']['editable']) && $page['dataTable']['editable'] && isset( $page['addButton'] )) Editar @endif @endif
@push("include-js") @endpush @endsection