Primer commit proyecto Laravel

This commit is contained in:
2026-02-05 11:10:09 -06:00
commit e4559106d4
2153 changed files with 210301 additions and 0 deletions
+76
View File
@@ -0,0 +1,76 @@
@extends('layouts.landing')
@section('head')
@include('layouts._partials.tablaStyle')
@endsection
@section('title',"Inicio")
@section('content')
<div class="container-fluid">
<div class="card shadow mb-4">
<div class="card-header py-3">
<div class="d-sm-flex align-items-center justify-content-between">
<h6 class="m-0 font-weight-bold text-primary">turnos</h6>
<a href="{{route('turno.create')}}" class="d-sm-inline-block btn btn-sm btn-primary shadow-sm"><i class="fas fa-download fa-sm text-white-50"></i> Crear turno</a>
</div>
</div>
<div class="card-body">
<div class="container-fluid">
{{-- @livewire('counter') --}}
<table id="tcont" class="table table-striped table-bordered nowrap table-hover" style="width:100%;">
<thead>
<tr>
<th>Id</th>
<th>Nombre</th>
<th>status</th>
<th>opciones</th>
</tr>
</thead>
<tbody>
@forelse ($turnos as $turno)
<tr style="width:100%">
<td>{{$turno->id}}</td>
<td><a href="{{route('turno.show',$turno->id)}}">{{$turno->name}}</a></td>
<td>{{ $turno->status==1 ? 'Activo' : 'Inactivo' }}</td>
<td class="row mx-auto">
@can('turno.edit')
<div class="col-sm-6 col-md-6"><a class="btn btn-primary" href="{{route('turno.edit',$turno->id)}}">Edit</a></div>
@endcan
@can('turno.destroy')
<div class="col-sm-6 col-md-6">
<form class="delete-form" action="{{route('turno.destroy',$turno->id)}}" method="POST">
@csrf
@method('DELETE')
<input type="submit" value="DELETE" class="btn btn-danger">
</form>
</div>
@endcan
</td>
</tr>
@empty
<p>Sin turnos.</p>
@endforelse
</tbody>
</table>
</div>
</div>
</div>
</div>
@endsection
@section('scripts')
@include('layouts._partials.tablaScript')
@include('layouts._partials.delete')
@endsection