uff creo que ya esta
This commit is contained in:
@@ -7,18 +7,28 @@
|
||||
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<nav class="pure-menu pure-menu-horizontal">
|
||||
<a class="pure-menu-heading pure-menu-link" id="title-link" href="{{route('admin')}}">Admin</a>
|
||||
<ul class="pure-menu-list">
|
||||
<li class="pure-menu-item"><a class="pure-menu-link" id="posts-link" href="{{ route('admin.post.index') }}">Posts</a></li>
|
||||
<li class="pure-menu-item"><a class="pure-menu-link" id="now-link" href="{{ route('admin.now.index') }}">Now</a></li>
|
||||
<li class="pure-menu-item"><a class="pure-menu-link" id="projects-link"href="{{ route('admin.project.index') }}">Projects</a></li>
|
||||
<li class="pure-menu-item"><a class="pure-menu-link" id="setup-link" href="{{ route('admin.setup.index') }}">Setups</a></li>
|
||||
<li class="pure-menu-item"><a class="pure-menu-link special-link" href="{{ route('index') }}">Volver</a></li>
|
||||
<nav class="menu">
|
||||
<ul class="menu-list">
|
||||
<a class="menu-heading" id="title-link" href="{{route('admin')}}">Admin</a>
|
||||
<li class="menu-item">
|
||||
<a class="menu-link" id="posts-link" href="{{ route('admin.post.index') }}">Posts</a>
|
||||
</li>
|
||||
<li class="menu-item">
|
||||
<a class="menu-link" id="now-link" href="{{ route('admin.now.index') }}">Now</a>
|
||||
</li>
|
||||
<li class="menu-item">
|
||||
<a class="menu-link" id="projects-link"href="{{ route('admin.project.index') }}">Projects</a>
|
||||
</li>
|
||||
<li class="menu-item">
|
||||
<a class="menu-link" id="setup-link" href="{{ route('admin.setup.index') }}">Setups</a>
|
||||
</li>
|
||||
<li class="menu-item">
|
||||
<a class="menu-link special-link" href="{{ route('index') }}">Volver</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<div class="container">
|
||||
<div class="container wide">
|
||||
@yield('content')
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,34 +1,33 @@
|
||||
@extends('admin.base')
|
||||
|
||||
@section('content')
|
||||
<div class="table-heading">
|
||||
<article>
|
||||
<h1>Now</h1>
|
||||
<a class="pure-button button-black-white" href="{{ route('admin.now.create') }}">Create Now</a>
|
||||
</div>
|
||||
<table class="pure-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Date</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($nows as $now)
|
||||
|
||||
<table class="pure-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>{{$now->id}}</td>
|
||||
<td>{{$now->created_at->format('Y-m-d')}}</td>
|
||||
<td class="controls">
|
||||
<a class="pure-button button-black-white" href="{{ route('admin.now.edit', ['now' => $now->id]) }}">Edit</a>
|
||||
<form action={{ route('admin.now.delete', ['now' => $now->id]) }} method="post">
|
||||
@csrf
|
||||
<button type="submit" class="pure-button button-black-white" onclick="return confirm('Estas seguro?')">Delete</button>
|
||||
</form>
|
||||
</td>
|
||||
<th>Id</th>
|
||||
<th>Date</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($nows as $now)
|
||||
<tr>
|
||||
<td>{{$now->id}}</td>
|
||||
<td>{{$now->created_at->format('Y-m-d')}}</td>
|
||||
<td class="controls">
|
||||
<a class="pure-button button-black-white" href="{{ route('admin.now.edit', ['now' => $now->id]) }}">Edit</a>
|
||||
<form action={{ route('admin.now.delete', ['now' => $now->id]) }} method="post">
|
||||
@csrf
|
||||
<button type="submit" class="pure-button button-black-white" onclick="return confirm('Estas seguro?')">Delete</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</article>
|
||||
@endsection
|
||||
|
||||
@@ -5,21 +5,23 @@
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<form class="pure-form pure-form-stacked" action="{{ route('admin.post.save') }}" method="post">
|
||||
@csrf
|
||||
<fieldset>
|
||||
<h1>Create Post</h1>
|
||||
<a class="pure-button button-black-white" href="{{ route('admin.post.index') }}">Back</a>
|
||||
<article>
|
||||
<form class="pure-form pure-form-stacked" action="{{ route('admin.post.save') }}" method="post">
|
||||
@csrf
|
||||
<fieldset>
|
||||
<h1>Create Post</h1>
|
||||
<a class="pure-button button-black-white" href="{{ route('admin.post.index') }}">Back</a>
|
||||
|
||||
<label for="title">Title</label>
|
||||
<input type="text" id="title" name="title" required/>
|
||||
<label for="title">Title</label>
|
||||
<input type="text" id="title" name="title" required/>
|
||||
|
||||
<label for="md">Content</label>
|
||||
<textarea id="md" name="md"></textarea>
|
||||
<label for="md">Content</label>
|
||||
<textarea id="md" name="md"></textarea>
|
||||
|
||||
<div class="control">
|
||||
<button class="pure-button button-black-white" type="submit">Create</button>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
<div class="control">
|
||||
<button class="pure-button button-black-white" type="submit">Create</button>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
</article>
|
||||
@endsection
|
||||
|
||||
@@ -5,21 +5,23 @@
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<form class="pure-form pure-form-stacked" action="{{ route('admin.post.update', ['post' => $post->id]) }}" method="post">
|
||||
@csrf
|
||||
<fieldset>
|
||||
<h1>Editar Post</h1>
|
||||
<a href="{{ route('admin.post.index') }}" class="pure-button button-black-white">Back</a>
|
||||
<article>
|
||||
<form class="pure-form pure-form-stacked" action="{{ route('admin.post.update', ['post' => $post->id]) }}" method="post">
|
||||
@csrf
|
||||
<fieldset>
|
||||
<h1>Editar Post</h1>
|
||||
<a href="{{ route('admin.post.index') }}" class="pure-button button-black-white">Back</a>
|
||||
|
||||
<label for="title">Title</label>
|
||||
<input type="text" id="title" name="title" value="{{ old('title', $post->title) }}" required/>
|
||||
<label for="title">Title</label>
|
||||
<input type="text" id="title" name="title" value="{{ old('title', $post->title) }}" required/>
|
||||
|
||||
<label for="md">Content</label>
|
||||
<textarea id="md" name="md">{{ old('md', $post->md) }}</textarea>
|
||||
<label for="md">Content</label>
|
||||
<textarea id="md" name="md">{{ old('md', $post->md) }}</textarea>
|
||||
|
||||
<div class="control">
|
||||
<button type="submit" class="pure-button button-black-white">Update</button>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
<div class="control">
|
||||
<button type="submit" class="pure-button button-black-white">Update</button>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
</article>
|
||||
@endsection
|
||||
|
||||
@@ -1,36 +1,35 @@
|
||||
@extends('admin.base')
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="table-heading">
|
||||
<article>
|
||||
<h1>Posts</h1>
|
||||
<a class="pure-button button-black-white" href="{{ route('admin.post.create') }}">Create Post</a>
|
||||
</div>
|
||||
|
||||
<table class="pure-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Title</th>
|
||||
<th>Date</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($posts as $post)
|
||||
<table class="pure-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>{{$post->id}}</td>
|
||||
<td>{{ Str::limit($post->title, 30, "...") }}</td>
|
||||
<td>{{$post->created_at->format('Y-m-d')}}</td>
|
||||
<td class="controls">
|
||||
<a href="{{ route('admin.post.edit', ['post' => $post->id]) }}" class="pure-button button-black-white">Edit</a>
|
||||
<form action={{ route('admin.post.delete', ['post' => $post->id]) }} method="post">
|
||||
@csrf
|
||||
<button type="submit" class="pure-button button-black-white" onclick="return confirm('Estas seguro?')">Delete</button>
|
||||
</form>
|
||||
</td>
|
||||
<th>Id</th>
|
||||
<th>Title</th>
|
||||
<th>Date</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($posts as $post)
|
||||
<tr>
|
||||
<td>{{$post->id}}</td>
|
||||
<td>{{ Str::limit($post->title, 30, "...") }}</td>
|
||||
<td>{{$post->created_at->format('Y-m-d')}}</td>
|
||||
<td class="controls">
|
||||
<a href="{{ route('admin.post.edit', ['post' => $post->id]) }}" class="pure-button button-black-white">Edit</a>
|
||||
<form action={{ route('admin.post.delete', ['post' => $post->id]) }} method="post">
|
||||
@csrf
|
||||
<button type="submit" class="pure-button button-black-white" onclick="return confirm('Estas seguro?')">Delete</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</article>
|
||||
@endsection
|
||||
|
||||
@@ -5,37 +5,35 @@
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="table-heading">
|
||||
<article>
|
||||
<h1>Projects</h1>
|
||||
<a class="pure-button button-black-white" href="{{ route('admin.project.create') }}">Add Project</a>
|
||||
</div>
|
||||
|
||||
<table class="pure-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Title</th>
|
||||
<th>Date</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($projects as $project)
|
||||
<table class="pure-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>{{$project->id}}</td>
|
||||
<td>{{ Str::limit($project->title, 30, "...") }}</td>
|
||||
<td>{{$project->created_at->format('Y-m-d')}}</td>
|
||||
<td class="controls">
|
||||
<a href="{{ route('admin.project.edit', ['project' => $project->id]) }}" class="pure-button button-black-white">Edit</a>
|
||||
<form action={{ route('admin.project.delete', ['project' => $project->id]) }} method="post">
|
||||
@csrf
|
||||
<button type="submit" class="pure-button button-black-white" onclick="return confirm('Estas Seguro?')">Delete</button>
|
||||
</form>
|
||||
</td>
|
||||
<th>Id</th>
|
||||
<th>Title</th>
|
||||
<th>Date</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($projects as $project)
|
||||
<tr>
|
||||
<td>{{$project->id}}</td>
|
||||
<td>{{ Str::limit($project->title, 30, "...") }}</td>
|
||||
<td>{{$project->created_at->format('Y-m-d')}}</td>
|
||||
<td class="controls">
|
||||
<a href="{{ route('admin.project.edit', ['project' => $project->id]) }}" class="pure-button button-black-white">Edit</a>
|
||||
<form action={{ route('admin.project.delete', ['project' => $project->id]) }} method="post">
|
||||
@csrf
|
||||
<button type="submit" class="pure-button button-black-white" onclick="return confirm('Estas Seguro?')">Delete</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</article>
|
||||
@endsection
|
||||
|
||||
@@ -1,36 +1,35 @@
|
||||
@extends('admin.base')
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="table-heading">
|
||||
<article>
|
||||
<h1>Setups</h1>
|
||||
<a class="pure-button button-black-white" href="{{ route('admin.setup.create') }}">Add Setup</a>
|
||||
</div>
|
||||
|
||||
<table class="pure-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Title</th>
|
||||
<th>Date</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($setups as $setup)
|
||||
<table class="pure-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<td>{{$setup->id}}</td>
|
||||
<td>{{ Str::limit($setup->title, 30, "...") }}</td>
|
||||
<td>{{$setup->created_at->format('Y-m-d')}}</td>
|
||||
<td class="controls">
|
||||
<a href="{{ route('admin.setup.edit', ['setup' => $setup->id]) }}" class="pure-button button-black-white">Edit</a>
|
||||
<form action={{ route('admin.setup.delete', ['setup' => $setup->id]) }} method="post">
|
||||
@csrf
|
||||
<button type="submit" class="pure-button button-black-white" onclick="return confirm('Estas seguro?')">Delete</button>
|
||||
</form>
|
||||
</td>
|
||||
<th>Id</th>
|
||||
<th>Title</th>
|
||||
<th>Date</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($setups as $setup)
|
||||
<tr>
|
||||
<td>{{$setup->id}}</td>
|
||||
<td>{{ Str::limit($setup->title, 30, "...") }}</td>
|
||||
<td>{{$setup->created_at->format('Y-m-d')}}</td>
|
||||
<td class="controls">
|
||||
<a href="{{ route('admin.setup.edit', ['setup' => $setup->id]) }}" class="pure-button button-black-white">Edit</a>
|
||||
<form action={{ route('admin.setup.delete', ['setup' => $setup->id]) }} method="post">
|
||||
@csrf
|
||||
<button type="submit" class="pure-button button-black-white" onclick="return confirm('Estas seguro?')">Delete</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</article>
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user