@extends('layouts.app') @push('pg_btn') @can('create-post') Add New Property @endcan @endpush @section('content')

All Posts

{!! Form::open(['route' => 'property.index', 'method'=>'get']) !!}
{{ Form::text('search', request()->query('search'), ['class' => 'form-control form-control-sm', 'placeholder'=>'Search post']) }}
{!! Form::close() !!}
@foreach($property as $post) @endforeach
Title Category Status Create By Photo Action
{{$post->property_title }}
{{$post->category->category_name}} @if($post->status) Active @else Disabled @endif {{$post->user->name}}
@if ($post->featured_image) Image placeholder @endif
@can('destroy-post') {!! Form::open(['route' => ['post.destroy', $post],'method' => 'delete', 'class'=>'d-inline-block dform']) !!} @endcan @can('view-post') @endcan @can('update-post') @endcan @can('destroy-post') {!! Form::close() !!} @endcan
{{$property->links()}}
@endsection @push('scripts') @endpush