@extends('layout.base')

@section('page_title')
    Inmobiliarias
@endsection

@section('page_content')
    <div class="ui container">
        <h2 class="ui header two columns grid">
            <div class="column">
                Inmobiliarias
            </div>
            {{--<div class="right aligned column">
                <button class="ui icon button" type="button">
                    <i class="plus icon"></i>
                </button>
            </div>--}}
        </h2>
        <div class="ui divider"></div>
        <div class="ui cards">
            @foreach($inmobiliarias as $inmobiliaria)
            <div class="ui card">
                <div class="content">
                    <div class="header">
                            {{$inmobiliaria->abreviacion}}
                        {{--<a href="{{$urls->base}}/inmobiliaria/{{$inmobiliaria->rut}}">
                        </a>--}}
                    </div>
                    <div class="description">{{$inmobiliaria->razon}} {{$inmobiliaria->tipoSociedad->descripcion}}</div>
                    <div class="meta">{{$inmobiliaria->rut()}}</div>
                </div>
            </div>
            @endforeach
        </div>
    </div>
@endsection
