@extends('layouts.app') @section('content')

{{auth()->user() != null ? auth()->user()->name : $user->name}}

{{--

--}} {{-- Front End Developer @FDevAhmed--}} {{--

--}} @if(auth()->check()) {{trans('web.edit')}} {{trans('web.logout')}} @endif
@if(auth()->check())
@endif
@foreach($user->files as $file) @if($file->type != 'media')

{{$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()}}
@else
@endif @endforeach
@endsection @push('js') @endpush