@extends('layouts.vertical', ["page_title"=> "Datatables"]) @section('css') @endsection @section('content')

{{$title}} Management

@if(isset($buttons)) @foreach($buttons as $button) {{$button['title']}} @endforeach @endif
@if(session()->has('message'))
{{ session()->get('message') }}
@endif @if(session()->has('error'))
{{ session()->get('error') }}
@endif
Exports run in the background. Refresh this page to check whether your file is ready for download.
@foreach($fields as $field => $props) @endforeach @foreach($items as $item) @foreach($fields as $field => $props) @if($field != 'actions') @else @endif @endforeach @endforeach
{{$props['title']}}
@switch($props['type']) @case('text') @case('select') {{ isset($item->{$field}) ? $item->{$field} : '' }} @break @case('datetime') @if(isset($item->{$field}) && $item->{$field}) {{ date("d M Y, h:iA", strtotime($item->{$field}) + 19800) }} @endif @break @endswitch @foreach($props['buttons'] as $key => $button) @switch($button) @case('delete') @break @default @php $href = isset($button['href']) && $button['href'] != '' ? $item->{$button['href']} : ''; $canDownload = isset($item->file_status) && $item->file_status === 'ready' && !empty($href) && $href !== '#'; @endphp @if($canDownload) @endif @endswitch @endforeach
@endsection @section('script') @endsection