@php if(Route::currentRouteName() == 'frontend.photo.show') { $routeEdit = route('frontend.photo.edit', $photo->id); $routeDelete = route('frontend.photo.destroy', $photo->id); } if(Route::currentRouteName() == 'frontend.product.photo.show') { $routeEdit = route('frontend.product.photo.edit', [$product->slug, $photo->id]); $routeDelete = route('frontend.product.photo.destroy', [$product->slug, $photo->id]); } @endphp

{{ $photo->title }}

{{ $photo->title }}

@if(Auth::check()) @if($photo->user_id == Auth::id() or Auth::user()->hasRole('admin')) Edit Delete @endif @endif Report

{!! nl2br(e($photo->description)) !!}

@if(Auth::check()) @if($photo->user_id == Auth::id() or Auth::user()->hasRole('admin')) @endif @endif
@include('frontend/component/comment/include', ['parent' => $photo])
@include('frontend/component/rating/include', ['parent' => $photo])
Title {{ $photo->title }}
Rating {{ $photo->rating }}
Comments {{ $photo->comments->where('status_id', 1)->count() }}
Views {{ $photo->views->count() }}
Category {{ $photo->category->name }}
Related @foreach($photo->products->sortBy('created_at') as $product) {{ $loop->first ? '' : ', ' }}{{ $product->name }} @endforeach
Taken @if(!empty($photo->taken_at)) {{ $photo->taken_at->diffForHumans() }} @endif
Uploaded {{ $photo->created_at->diffForHumans() }}
Source {{ $photo->source_name }}
Location {{ $photo->location }}
Last Edited {{ $photo->updated_at->diffForHumans() }}
Uploaded By {{ $photo->user->name }}