@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)
| {{$props['title']}} |
@endforeach
@foreach($items as $item)
@foreach($fields as $field => $props)
@if($field != 'actions')
|
@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
|
@else
@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
|
@endif
@endforeach
@endforeach
@endsection
@section('script')
@endsection