@extends('layouts.app') @push('css') @endpush @section('content')

{{$data->name}}

{{trans('web.search')}}
{{--

Presentations Content

--}}
@foreach(\App\SubjectData::where([['status',1],['subject_id',request()->route('subject')],['type','presentation']])->orderBy('fixed','DESC')->get() as $file)

{{$file->name}} - {{$file->ext}}

@if($file->size)

{{$file->size}}KB

@endif
{{$file->user->name}}

{{$file->user->name}}

{{\App\SubjectDataReaction::where([['type','view'],['subject_data_id',$file->id]])->count()}}
{{\App\SubjectDataReaction::where([['type','download'],['subject_data_id',$file->id]])->count()}}
{{\App\SubjectDataReaction::where([['type','like'],['subject_data_id',$file->id]])->count()}}
{{\App\SubjectDataReaction::where([['type','dislike'],['subject_data_id',$file->id]])->count()}}
@endforeach
{{trans('web.search')}}
{{--

Written Preparation Content

--}}
@foreach(\App\SubjectData::where([['status',1],['subject_id',request()->route('subject')],['type','preparation']])->orderBy('fixed','DESC')->get() as $file)

{{$file->name}} - {{$file->ext}}

@if($file->size)

{{$file->size}}KB

@endif
{{$file->user->name}}

{{$file->user->name}}

{{\App\SubjectDataReaction::where([['type','view'],['subject_data_id',$file->id]])->count()}}
{{\App\SubjectDataReaction::where([['type','download'],['subject_data_id',$file->id]])->count()}}
{{\App\SubjectDataReaction::where([['type','like'],['subject_data_id',$file->id]])->count()}}
{{\App\SubjectDataReaction::where([['type','dislike'],['subject_data_id',$file->id]])->count()}}
@endforeach
{{trans('web.search')}}
@foreach(\App\SubjectData::where([['status',1],['subject_id',request()->route('subject')],['type','file']])->orderBy('fixed','DESC')->get() as $file)

{{$file->name}} - {{$file->ext}}

@if($file->size)

{{$file->size}}KB

@endif
{{$file->user->name}}

{{$file->user->name}}

{{\App\SubjectDataReaction::where([['type','view'],['subject_data_id',$file->id]])->count()}}
{{\App\SubjectDataReaction::where([['type','download'],['subject_data_id',$file->id]])->count()}}
{{\App\SubjectDataReaction::where([['type','like'],['subject_data_id',$file->id]])->count()}}
{{\App\SubjectDataReaction::where([['type','dislike'],['subject_data_id',$file->id]])->count()}}
@endforeach
{{trans('web.search')}}
@foreach(\App\SubjectData::where([['status',1],['subject_id',request()->route('subject')],['type','media']])->orderBy('fixed','DESC')->get() as $file)

@endforeach
{{--

Presentations Content

--}} @foreach(\App\SubjectData::where([['status',1],['subject_id',request()->route('subject')],['type','presentation']])->orderBy('fixed','DESC')->get() as $file)

{{$file->name}} - {{$file->ext}}

@if($file->size)

{{$file->size}}KB

@endif
{{$file->user->name}}

{{$file->user->name}}

{{\App\SubjectDataReaction::where([['type','view'],['subject_data_id',$file->id]])->count()}}
{{\App\SubjectDataReaction::where([['type','download'],['subject_data_id',$file->id]])->count()}}
{{\App\SubjectDataReaction::where([['type','like'],['subject_data_id',$file->id]])->count()}}
{{\App\SubjectDataReaction::where([['type','dislike'],['subject_data_id',$file->id]])->count()}}
@endforeach
{{--

Written Preparation Content

--}} @foreach(\App\SubjectData::where([['status',1],['subject_id',request()->route('subject')],['type','preparation']])->orderBy('fixed','DESC')->get() as $file)

{{$file->name}} - {{$file->ext}}

@if($file->size)

{{$file->size}}KB

@endif
{{$file->user->name}}

{{$file->user->name}}

{{\App\SubjectDataReaction::where([['type','view'],['subject_data_id',$file->id]])->count()}}
{{\App\SubjectDataReaction::where([['type','download'],['subject_data_id',$file->id]])->count()}}
{{\App\SubjectDataReaction::where([['type','like'],['subject_data_id',$file->id]])->count()}}
{{\App\SubjectDataReaction::where([['type','dislike'],['subject_data_id',$file->id]])->count()}}
@endforeach
@foreach(\App\SubjectData::where([['status',1],['subject_id',request()->route('subject')],['type','file']])->orderBy('fixed','DESC')->get() as $file)

{{$file->name}} - {{$file->ext}}

@if($file->size)

{{$file->size}}KB

@endif
{{$file->user->name}}

{{$file->user->name}}

{{\App\SubjectDataReaction::where([['type','view'],['subject_data_id',$file->id]])->count()}}
{{\App\SubjectDataReaction::where([['type','download'],['subject_data_id',$file->id]])->count()}}
{{\App\SubjectDataReaction::where([['type','like'],['subject_data_id',$file->id]])->count()}}
{{\App\SubjectDataReaction::where([['type','dislike'],['subject_data_id',$file->id]])->count()}}
@endforeach
{{--
--}} {{-- Search--}} {{-- --}} {{--
--}}
@foreach(\App\SubjectData::where([['status',1],['subject_id',request()->route('subject')],['type','media']])->orderBy('fixed','DESC')->get() as $file)

@endforeach
@endsection @push('js') @endpush