@extends('index') @section('web')
@foreach(\App\Slider::where('active', 'active')->orderBy('id', 'desc')->paginate(3) as $key => $val)

{{trans('web.year')}} {{$config->year}}

{{$val->$name}}

{{$val->$body}}

{{trans('web.subscription')}}
@endforeach
{{trans('web.users')}}

{{\App\User::where('active', 'active')->count()}}

{{trans('web.news')}}

{{\App\Post::where('active', 'active')->count()}}

{{trans('web.images')}}

{{\App\Gallery::where('active', 'active')->count()}}

{{trans('web.locations')}}

{{\App\Location::where('active', 'active')->count()}}

@foreach(\App\Post::where('active', 'active')->paginate(9) as $key => $val) {{$val->$name}} | @endforeach

{{trans('web.gallery')}}

@foreach(\App\Gallery::where('active', 'active')->orderBy('id', 'desc')->paginate(6) as $key => $val) @endforeach

{{trans('web.news1')}}

@foreach(\App\Post::where('active', 'active')->orderBy('id', 'desc')->paginate(3) as $key => $val)

{{$val->$name}}

{{$val->created_at}}
@endforeach

{{trans('web.locations')}}

@foreach(\App\Location::where('active', 'active')->orderBy('id', 'desc')->get() as $key => $val) @endforeach
@endsection