@extends('home') @section('title') @lang('site.site_name') @endsection @section('styles') {!! Html::style(Theme::current()->assetPath.'/pages/css/profile-rtl.min.css') !!} {!! Html::style(Theme::current()->assetPath.'/global/plugins/bootstrap-markdown/css/bootstrap-markdown.min.css') !!} {!! Html::style(Theme::current()->assetPath.'/global/plugins/bootstrap-fileinput/bootstrap-fileinput.css') !!} {!! Html::style(Theme::current()->assetPath.'/global/plugins/bootstrap-switch/css/bootstrap-switch-rtl.min.css') !!} @endsection @section('content')
@if (@$cat_id) {{ __('Category') }} : {{ categoryTitle($cat_id) }} @else {{__('Articles '.ucfirst($section))}} @endif

@foreach ($articles as $index => $item) @endforeach
{{__('Title')}} {{__('Category')}} {{__('Writer')}} {{__('Status')}} {{__('Action')}}
{{ $loop->index + $articles->firstItem() }} @if (@$item->photo) @elseif (@$item->video) @elseif (@$item->image->small) @else @endif {{ $item->title }} @if ($section == 'news') {{ $item->category->title }} @else {{ $item->category->title }} @endif @if (@$item->writer_id) {{ @$item->writer->title }} @endif {{ $item->id }} {{ Form::open(['method' => 'DELETE', 'route' => ['admin.article.destroy', $item->id]]) }} @if ($item->category->section == 'news') @else @endif {{ Form::close() }}
@endsection @section('scripts') {!! Html::script(Theme::current()->assetPath.'/global/plugins/bootstrap-fileinput/bootstrap-fileinput.js') !!} {!! Html::script(Theme::current()->assetPath.'/global/plugins/bootstrap-markdown/lib/markdown.js') !!} {!! Html::script(Theme::current()->assetPath.'/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js') !!} {!! Html::script(Theme::current()->assetPath.'/global/plugins/bootstrap-markdown/js/bootstrap-markdown.js') !!} {!! Html::script(Theme::current()->assetPath.'/global/plugins/jquery-validation/js/jquery.validate.min.js') !!} {!! Html::script(Theme::current()->assetPath.'/global/plugins/jquery-validation/js/additional-methods.min.js') !!} {!! Html::script(Theme::current()->assetPath.'/pages/scripts/form-validation.js') !!} {!! Html::script(Theme::current()->assetPath.'/global/plugins/jquery-ui/jquery-ui.min.js') !!} @endsection