View file resources/views/loads/rss.blade.php

File size: 766B
@extends('layout_rss')

@section('title', __('loads.rss_downs'))

@section('content')
    @foreach ($downs as $down)
        <?php $down->text = bbCode($down->text); ?>
        <?php $down->text = str_replace('/uploads/stickers', config('app.url').'/uploads/stickers', $down->text); ?>

        <item>
            <title>{{ $down->title }}</title>
            <link>{{ config('app.url') }}/downs/{{ $down->id }}</link>
            <description>{{ $down->text }}</description>
            <author>{{ $down->user->getName() }}</author>
            <pubDate>{{ date('r', $down->created_at) }}</pubDate>
            <category>{{ __('index.loads') }}</category>
            <guid>{{ config('app.url') }}/downs/{{ $down->id }}</guid>
        </item>
    @endforeach
@stop