@extends('admin.layout.layout')

@section('title')
    اضافة عقار

@endsection

@section('header')


@endsection

@section('content')



    <section class="content">
        <div class="row">
            <div class="col-12">
                <div class="card">
                    <div class="card-header">
                        <h3 class="card-title">اضافة عقار</h3>
                    </div>
                    <div class="card-body">
                        @if(Session::has('flash_message'))
                            <div class="alert alert-success">
                                {{ Session::get('flash_message') }}
                            </div>
                        @endif
                        @if($errors->any())
                            <div class="alert alert-danger">
                                @foreach($errors->all() as $error)
                                    <p>{{ $error }}</p>
                                @endforeach
                            </div>
                        @endif

                        <form method="POST" action="{{ route('Property.index') }}"  enctype="multipart/form-data" style="float: right; margin-left: 10px">
                            @include('admin.property.form')
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </section>






@endsection

@section('footer')


@endsection
