@extends('layouts.admin')
@section('content')
<input type="hidden" id="headerdata" value="{{ __('RSS Feeds') }}">
<div class="page-header"><div class="page-block"><div class="row align-items-center">
    <div class="col-md-12"><ul class="breadcrumb"><li class="breadcrumb-item"><a href="{{ route('admin.dashboard') }}">হোম</a></li><li class="breadcrumb-item"><a href="javascript: void(0)">মিডিয়া</a></li><li class="breadcrumb-item" aria-current="page">RSS</li></ul></div>
    <div class="col-md-12"><div class="page-header-title"><h2 class="mb-0">{{ __('RSS Feeds') }}</h2></div></div>
</div></div></div>

<div class="row mb-3"><div class="col-lg-12 text-end"><a class="btn btn-primary text-white" data-href="{{route('rss.create')}}" id="add-data"><i class="ti ti-plus me-1"></i>{{ __('Add New RSS') }}</a></div></div>

<div class="card tbl-card">
    <div class="card-header"><h5>{{ __('RSS Feeds') }}</h5></div>
    <div class="card-body">
        @include('includes.admin.form-success')
        <div class="table-responsive">
            <table id="geniustable" class="table table-hover table-borderless mb-0" cellspacing="0" width="100%">
                <thead><tr><th>{{ __('Feed Name') }}</th><th>{{ __('Category') }}</th><th>{{ __('Feed URL') }}</th><th>{{ __('Auto Update') }}</th><th>{{ __('Options') }}</th></tr></thead>
            </table>
        </div>
    </div>
</div>
<div class="modal fade" id="modal1" tabindex="-1" role="dialog" aria-hidden="true"><div class="modal-dialog modal-dialog-centered" role="document"><div class="modal-content"><div class="modal-header"><h5 class="modal-title"></h5><button type="button" class="btn-close" data-bs-dismiss="modal"></button></div><div class="modal-body"></div><div class="modal-footer"><button type="button" class="btn btn-secondary" data-bs-dismiss="modal">{{ __('Close') }}</button></div></div></div></div>
<div class="modal fade" id="confirm-delete" tabindex="-1" role="dialog" aria-hidden="true"><div class="modal-dialog"><div class="modal-content"><div class="modal-header d-block text-center"><h4 class="modal-title d-inline-block">{{ __('Confirm Delete') }}</h4><button type="button" class="btn-close float-end" data-bs-dismiss="modal"></button></div><div class="modal-body"><p class="text-center">{{ __('You are about to delete this RSS Feed.') }}</p><p class="text-center">{{ __('Do you want to proceed?') }}</p></div><div class="modal-footer justify-content-center"><button type="button" class="btn btn-secondary" data-bs-dismiss="modal">{{ __('Cancel') }}</button><a class="btn btn-danger btn-ok">{{ __('Delete') }}</a></div></div></div></div>
@endsection
@section('scripts')
<script type="text/javascript">
    var table = $('#geniustable').DataTable({
        ordering: false, serverSide: true,
        ajax: '{{ route('rss.datatables') }}',
        columns: [{ data: 'feed_name', name: 'feed_name' },{ data: 'category_id', name: 'category_id' },{ data: 'feed_url', name: 'feed_url' },{ data: 'auto_update', name: 'auto_update' },{ data: 'action', searchable: false, orderable: false }],
        drawCallback: function(settings){ $('.select').niceSelect(); }
    });
</script>
@endsection
