@extends('layout.base')

@section('content')
	<div class="row page-heading">
		<div class="col-md-10 h3">Inmobiliarias</div>
		<div class="col-md-2 text-right h4">
			<a href="{{url('', ['p' => 'inmobiliarias', 'a' => 'add'])}}">
				<span class="glyphicon glyphicon-plus"></span>
			</a>
		</div>
	</div>
	<div class="ui segment">
		<div class="ui cards">
			@foreach ($inmobiliarias as $inmobiliaria)
				<div class="card">
					<div class="content">
						<div class="header">
							<a href="{{nUrl('inmobiliarias', 'show', ['rut' => $inmobiliaria->rut])}}">{{$inmobiliaria->nombre()}}</a>
						</div>
						<div class="meta">
							{{$inmobiliaria->rut()}}
						</div>
						<div class="description">
							{{$inmobiliaria->razon(true)}}
						</div>
					</div>
				</div>
			@endforeach
		</div>
	</div>
@endsection
