@extends('frontend.layouts.app-dashboard') @section('content')
@if( isset( auth()->user()->profile_image ) && file_exists(public_path('profile_image/'.auth()->user()->profile_image))) {{auth()->user()->first_name}} @else {{auth()->user()->first_name}} @endif
{{auth()->user()->first_name}} {{auth()->user()->last_name}}
Edit profile
{{auth()->user()->created_at->diffForHumans()}}
on Local Buzz
@if( isset( $ads ) && count( $ads ) > 0 ) @foreach( $ads as $ad ) @php $imageUrl = null; if($ad->module_id == 1){ $imageUrl = asset('business/'.$ad->featured_image); $imagePath = public_path( 'business/'.$ad->featured_image ); } if($ad->module_id == 2){ $imageUrl = asset('home-business/'.$ad->featured_image); $imagePath = public_path( 'home-business/'.$ad->featured_image ); } if($ad->module_id == 3){ $imageUrl = asset('non-profit/'.$ad->featured_image); $imagePath = public_path('non-profit/'.$ad->featured_image); } @endphp
@if( isset( $imageUrl ) && file_exists( $imagePath ) ) @else @endif

{{date('F d, Y',strtotime($ad->created_at))}}

@endforeach @endif
@endsection