codigo actual del servidor, con avances de joan
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-8 mx-auto">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h5 class="mb-0 h6">{{translate('Blog Category Information')}}</h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form class="form-horizontal" method="POST" action="{{ route('blog-category.store') }}">
|
||||
@csrf
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 col-form-label">{{translate('Name')}}</label>
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="{{translate('Name')}}" id="category_name" name="category_name" class="form-control" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group mb-0 text-right">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
{{translate('Save')}}
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
33
resources/views/backend/blog_system/category/edit.blade.php
Normal file
33
resources/views/backend/blog_system/category/edit.blade.php
Normal file
@@ -0,0 +1,33 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-lg-8 mx-auto">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h5 class="mb-0 h6">{{translate('Blog Category Information')}}</h5>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form id="add_form" class="form-horizontal" action="{{ route('blog-category.update', $cateogry->id) }}" method="POST">
|
||||
@csrf
|
||||
@method('PATCH')
|
||||
|
||||
<div class="form-group row">
|
||||
<label class="col-md-3 col-form-label">{{translate('Name')}}</label>
|
||||
<div class="col-md-9">
|
||||
<input type="text" placeholder="{{translate('Name')}}" id="category_name" name="category_name" value="{{ $cateogry->category_name }}" class="form-control" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group mb-0 text-right">
|
||||
<button type="submit" class="btn btn-primary">
|
||||
{{translate('Save')}}
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
70
resources/views/backend/blog_system/category/index.blade.php
Normal file
70
resources/views/backend/blog_system/category/index.blade.php
Normal file
@@ -0,0 +1,70 @@
|
||||
@extends('backend.layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="aiz-titlebar text-left mt-2 mb-3">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-md-6">
|
||||
<h1 class="h3">{{translate('All Blog Categories')}}</h1>
|
||||
</div>
|
||||
@can('add_blog_category')
|
||||
<div class="col-md-6 text-md-right">
|
||||
<a href="{{ url('admin/blog-category/create') }}" class="btn btn-primary">
|
||||
<span>{{translate('Add New category')}}</span>
|
||||
</a>
|
||||
</div>
|
||||
@endcan
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-header d-block d-md-flex">
|
||||
<h5 class="mb-0 h6">{{ translate('Blog Categories') }}</h5>
|
||||
<form class="" id="sort_categories" action="" method="GET">
|
||||
<div class="box-inline pad-rgt pull-left">
|
||||
<div class="" style="min-width: 200px;">
|
||||
<input type="text" class="form-control" id="search" name="search"@isset($sort_search) value="{{ $sort_search }}" @endisset placeholder="{{ translate('Type name & Enter') }}">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table class="table aiz-table mb-0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="5%">#</th>
|
||||
<th>{{translate('Name')}}</th>
|
||||
<th width="10%" class="text-right">{{translate('Options')}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($categories as $key => $category)
|
||||
<tr>
|
||||
<td>{{ ($key+1) + ($categories->currentPage() - 1)*$categories->perPage() }}</td>
|
||||
<td>{{ $category->category_name }}</td>
|
||||
<td class="text-right">
|
||||
@can('edit_blog_category')
|
||||
<a class="btn btn-soft-primary btn-icon btn-circle btn-sm" href="{{url('admin/blog-category/'.$category->id.'/edit')}}" title="{{ translate('Edit') }}">
|
||||
<i class="las la-edit"></i>
|
||||
</a>
|
||||
@endcan
|
||||
@can('delete_blog_category')
|
||||
<a href="#" class="btn btn-soft-danger btn-icon btn-circle btn-sm confirm-delete" data-href="{{route('blog-category.destroy', $category->id)}}" title="{{ translate('Delete') }}">
|
||||
<i class="las la-trash"></i>
|
||||
</a>
|
||||
@endcan
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="aiz-pagination">
|
||||
{{ $categories->appends(request()->input())->links() }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
|
||||
@section('modal')
|
||||
@include('modals.delete_modal')
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user