Skip to content

Commit

Permalink
nosotros 1
Browse files Browse the repository at this point in the history
a
  • Loading branch information
SgcWeb2 committed Oct 26, 2021
1 parent a523865 commit 02c85f5
Show file tree
Hide file tree
Showing 8 changed files with 204 additions and 5 deletions.
11 changes: 11 additions & 0 deletions app/Http/Controllers/CtrNosotros.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

namespace App\Http\Controllers;

class CtrNosotros extends Controller
{
public function __invoke()
{
return view("nosotros.index");
}
}
1 change: 0 additions & 1 deletion app/Http/Livewire/Banco/ShowBanco.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

class ShowBanco extends Component
{

public Banco $banco;

public function render()
Expand Down
3 changes: 3 additions & 0 deletions app/Http/Livewire/Visita/ShowVisita.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@

namespace App\Http\Livewire\Visita;

use App\Models\Visita;
use Livewire\Component;

class ShowVisita extends Component
{
public Visita $visita;

public function render()
{
return view('livewire.visita.show-visita');
Expand Down
1 change: 1 addition & 0 deletions app/Models/Visita.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class Visita extends Model
'matricula',
'marca',
'modelo',
'color',
];

public function unidad() {
Expand Down
3 changes: 0 additions & 3 deletions resources/views/livewire/banco/show-banco.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<div>

<div class="bg-white overflow-hidden shadow-xl rounded-xl">
<div class="px-4 py-5 sm:px-6">
<h3 class="text-lg leading-6 font-medium text-gray-900">
Expand All @@ -21,6 +20,4 @@
</dl>
</div>
</div>


</div>
123 changes: 122 additions & 1 deletion resources/views/livewire/visita/show-visita.blade.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,124 @@
<div>
{{-- The whole world belongs to you. --}}
<div class="bg-white overflow-hidden shadow-xl rounded-xl">
<div class="px-4 py-5 sm:px-6">
<h3 class="text-lg leading-6 font-medium text-gray-900">
Visita
</h3>
</div>
<div class="border-t border-gray-200">
<dl>

<div class="bg-white px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
<dt class="text-sm font-medium text-gray-500">
Fecha de entrada:
</dt>
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">
{{ Str::substr($visita->fecha_hora_entrada, 0, 10) }}
</dd>
</div>

<div class="bg-gray-50 px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
<dt class="text-sm font-medium text-gray-500">
Hora de entrada::
</dt>
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">
{{ Str::substr($visita->fecha_hora_entrada, 11) }}
</dd>
</div>

<div class="bg-white px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
<dt class="text-sm font-medium text-gray-500">
Cédula:
</dt>
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">
{{ $visita->letra }}-{{ $visita->ci }}
</dd>
</div>

<div class="bg-gray-50 px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
<dt class="text-sm font-medium text-gray-500">
Nombre:
</dt>
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">
{{ $visita->nombre }} {{ $visita->apellido }}
</dd>
</div>

<div class="bg-white px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
<dt class="text-sm font-medium text-gray-500">
Unidad a la que visita:
</dt>
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">
{{ $visita->unidad->numero }} - {{ $visita->unidad->propietario->integrante->nombre }}
{{ $visita->unidad->propietario->integrante->apellido }}
</dd>
</div>

@if ($visita->numero_personas > 1)

<div class="bg-white px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
<dt class="text-sm font-medium text-gray-500">
Número de personas:
</dt>
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">
{{ $visita->numero_personas }}
</dd>
</div>

@endif

@if ($visita->matricula)

<div class="bg-gray-50 px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
<dt class="text-sm font-medium text-gray-500">
Matrícula:
</dt>
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">
{{ $visita->matricula }}
</dd>
</div>

<div class="bg-white px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
<dt class="text-sm font-medium text-gray-500">
Marca:
</dt>
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">
{{ $visita->marca }}
</dd>
</div>

<div class="bg-gray-50 px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
<dt class="text-sm font-medium text-gray-500">
Modelo:
</dt>
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">
{{ $visita->modelo }}
</dd>
</div>

<div class="bg-white px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
<dt class="text-sm font-medium text-gray-500">
Color:
</dt>
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">
{{ $visita->color }}
</dd>
</div>

@else

<div class="bg-gray-50 px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
<dt class="text-sm font-medium text-gray-500">
Vehículo:
</dt>
<dd class="mt-1 text-sm text-gray-900 sm:mt-0 sm:col-span-2">
Sin vehículo
</dd>
</div>

@endif

</dl>
</div>
</div>
</div>
64 changes: 64 additions & 0 deletions resources/views/nosotros/index.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<x-app-layout>
<div class="py-12">
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
<div class="bg-white overflow-hidden shadow-xl sm:rounded-lg">
<div class="">

<!-- This example requires Tailwind CSS v2.0+ -->
<div class="relative bg-white overflow-hidden">
<div class="max-w-7xl mx-auto">
<div
class="relative z-10 pb-8 bg-white sm:pb-16 md:pb-20 lg:max-w-2xl lg:w-full lg:pb-28 xl:pb-32">
<svg class="hidden lg:block absolute right-0 inset-y-0 h-full w-48 text-white transform translate-x-1/2"
fill="currentColor" viewBox="0 0 100 100" preserveAspectRatio="none"
aria-hidden="true">
<polygon points="50,0 100,0 50,100 0,100" />
</svg>

<div>
<div class="relative pt-6 px-4 sm:px-6 lg:px-8">

</div>



</div>

<main
class="mt-10 mx-auto max-w-7xl px-4 sm:mt-12 sm:px-6 md:mt-16 lg:mt-20 lg:px-8 xl:mt-28">
<div class="sm:text-center lg:text-left">
<h1
class="text-4xl tracking-tight font-extrabold text-gray-900 sm:text-5xl md:text-6xl">
<span class="block xl:inline">SGC Web</span>
<span class="block text-indigo-600 md:text-4xl">Sistema Administrativo</span>
</h1>
<p
class="mt-3 text-base text-gray-500 sm:mt-5 sm:text-lg sm:max-w-xl sm:mx-auto md:mt-5 md:text-xl lg:mx-0">
¡Cobranza, facturación, información y reportes para tu condominio en un solo lugar!
</p>
<div class="mt-5 sm:mt-8 sm:flex sm:justify-center lg:justify-start">
<div class="rounded-md shadow">
<a href="{{route('login')}}"
class="w-full flex items-center justify-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 md:py-4 md:text-lg md:px-10">
Iniciar sesión
</a>
</div>
</div>
</div>
</main>
</div>
</div>
<div class="lg:absolute lg:inset-y-0 lg:right-0 lg:w-1/2">
<img class="h-56 w-full object-cover sm:h-72 md:h-96 lg:w-full lg:h-full"
src="https://images.unsplash.com/photo-1551434678-e076c223a692?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=2850&q=80"
alt="">
</div>
</div>


</div>
</div>
</div>
</div>

</x-app-layout>
3 changes: 3 additions & 0 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use App\Http\Controllers\CtrInicio;
use App\Http\Controllers\CtrIntegrante;
use App\Http\Controllers\CtrMedicamento;
use App\Http\Controllers\CtrNosotros;
use App\Http\Controllers\CtrPago;
use App\Http\Controllers\CtrPagoPropietario;
use App\Http\Controllers\CtrProveedor;
Expand Down Expand Up @@ -86,3 +87,5 @@
Route::get('unidad', [CtrUnidad::class, 'index'])->name('unidad.index');

Route::get('unidad/{unidad}', [CtrUnidad::class, 'show'])->name('unidad.show');

Route::get('nosotros', CtrNosotros::class)->name('nosotros.index');

0 comments on commit 02c85f5

Please sign in to comment.