Trying to get property of non-object (View:

Messages postés
15
Date d'inscription
mardi 27 février 2018
Statut
Membre
Dernière intervention
24 septembre 2019
-
salut comment ca va
Aide moi avec ça SVP

Trying to get property of non-object (View: /home/u470806488/domains/hitpro.ml/public_html/RADIO/resources/views/ContactUs/list.blade.php)



@extends('layouts.web')
@section('title','List Contact Us')
@section('style')
<link rel="stylesheet" type="text/css" href="{{url('public/css/jquery.dataTables.min.css')}}">
<link rel="stylesheet" type="text/css" href="{{url('public/css/dataTables.jqueryui.css')}}">
<style>
	</style>
@endsection
@section('content')
<div class="app-content my-3 my-md-5">
	<div class="side-app">
		<div class="page-header">
			<h4 class="page-title">All Contact Us</h4>
			<div>
				<a href="{{ url('/admin/contact_us/'.$contact->id.'/edit')}}" class="btn btn-pill btn-primary">Edit Contact Us</a>
			</div>
		</div>
		<div class="featured_banner">

		</div> 
		@if(session()->has('success'))
		<div class="alert alert-success  alert-dismissible">
			<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
			<strong>Success!</strong> {{session('success')}}
		</div>
		@elseif(session()->has('error'))
		<div class="alert alert-danger  alert-dismissible">
			<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
			<strong>Danger!</strong> {{session('error')}}
		</div>
		@endif
		<div class="row">
			<div class="col-md-12 col-lg-12">
				<div class="card">
					<div class="card-header">
						<h3 class="card-title"></h3>
					</div>
					<div class="siteInformation table-responsive">
						<table class="table table-striped table-bordered">
							<thead>
								<tr>
									<th><h6>Field</h6></th>
									<th><h6>Value</h6></th>
								</tr>
							</thead>
							<tbody>
								<tr><td>Phone No</td><td>{{$contact->phone_no}}</td></tr>
								<tr><td>Email</td><td>{{$contact->email}}</td></tr>
								<tr><td>Address</td><td>{{$contact->address}}</td></tr>
							</tbody>
						</table>
					</div>
					<div class="paginate-div">
					</div>
					<!-- table-responsive -->
				</div>
			</div>
		</div>
	</div>
</div>
@endsection
@section('script')
<script src="{{url('public/js/jquery.dataTables.min.js')}}"></script>
<script src="{{url('public/js/dataTables.jqueryui.js')}}"></script>
<script src="{{url('public/js/bootbox.min.js')}}"></script>
<script type="text/javascript">
	$(document).ready(function(){
		$(document).on('click','.delete',function(){
			var $this = $(this);
			console.log(this)
			bootbox.confirm("Are you sure?", function(result){
				if(result){
					$this.parents('form').submit();
				}
				else{

				}
			});
		});

	});
</script>
@endsection 






public_html/RADIO/storage/framework/views/8a1010b9355c69decf8a0169306d02fecb4487dd.php

<link rel="stylesheet" type="text/css" href="<?php echo e(url('public/css/dataTables.jqueryui.css')); ?>">
<style>
    </style>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<div class="app-content my-3 my-md-5">
    <div class="side-app">
        <div class="page-header">
            <h4 class="page-title">All Contact Us</h4>
            <div>
                <a href="<?php echo e(url('/admin/contact_us/'.$contact->id.'/edit')); ?>" class="btn btn-pill btn-primary">Edit Contact Us</a>
            </div>
        </div>
        <div class="featured_banner">
 
        </div> 
        <?php if(session()->has('success')): ?>
        <div class="alert alert-success  alert-dismissible">
            <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
            <strong>Success!</strong> <?php echo e(session('success')); ?>
 
        </div>
        <?php elseif(session()->has('error')): ?>
        <div class="alert alert-danger  alert-dismissible">
            <a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
Afficher la suite