@extends('layouts.layout') @section('title', 'Advertisement') @section('content') @php function created_by_name($id){ $result=DB::table('users')->where('id',$id)->first(); return isset($result->name)?$result->name:''; } @endphp

View Details

@if(Session::has('message')) @endif @if(count($ad)>0) @foreach($ad as $key=>$item) @endforeach @else @endif
# Ad Details User IP Date
{{ $key+1 }} @php $addata = DB::table('advertisement')->where('id',$item->ad_id)->first(); @endphp @if($addata) Ad Name : {{ $addata->ad_name }} @if($addata->position)
Position : {{ ucwords(str_replace('_',' ',$addata->position)) }} @endif @endif
{{ isset($item->user_id)?created_by_name($item->user_id):'' }} {{ $item->ip_address }} {{ date("d/m/Y h:i A",strtotime($item->created_at))}}

No records found!

@endsection