@extends('layouts.vertical', ["page_title"=> "Datatables"]) @section('css') @endsection @section('content')
| {{$props['title']}} | @endforeach|
|---|---|
|
@switch($props['type'])
@case('image')
|
@else
@foreach($props['buttons'] as $key => $button) @switch($button) @case('edit') @break @case('delete') @break @default @php if(isset($button['href']) && $button['href'] != '') { $href = $item->{$button['href']}; } else { $querystring = $button['querystring']; foreach((array)$item as $k => $v) { if(strpos($querystring,'{'.strtoupper($k).'}') !== false) $querystring = str_replace('{'.strtoupper($k).'}', $v, $querystring); } $href = $base_url.'/'.$key.'?'.$querystring; } @endphp @endswitch @endforeach Process | @endif @endforeach