JFIF x x C C " } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w !1AQ aq"2B #3Rbr{
File "blog_category.blade.php"
Full Path: /var/www/laravel_filter/Modules/Blog/Resources/views/blog_category.blade.php
File size: 3.12 KB
MIME-type: text/html
Charset: utf-8
@extends('admin.master_layout')
@section('title')
<title>{{__('admin.Blog Category')}}</title>
@endsection
@section('admin-content')
<!-- Main Content -->
<div class="main-content">
<section class="section">
<div class="section-header">
<h1>{{__('admin.Blog Category')}}</h1>
</div>
<div class="section-body">
<a href="{{ route('admin.blog-category.create') }}" class="btn btn-primary"><i class="fas fa-plus"></i> {{__('admin.Add New')}}</a>
<div class="row mt-4">
<div class="col">
<div class="card">
<div class="card-body">
<div class="table-responsive table-invoice">
<table class="table table-striped" id="dataTable">
<thead>
<tr>
<th>{{__('admin.SN')}}</th>
<th>{{__('admin.Name')}}</th>
<th>{{__('admin.Slug')}}</th>
<th>{{__('admin.Status')}}</th>
<th>{{__('admin.Action')}}</th>
</tr>
</thead>
<tbody>
@foreach ($categories as $index => $category)
<tr>
<td>{{ ++$index }}</td>
<td>{{ $category->translate->name }}</td>
<td>{{ $category->slug }}</td>
<td>
@if($category->status == 1)
<span class="badge badge-success">{{__('admin.Active')}}</span>
@else
<span class="badge badge-danger">{{__('admin.Inactive')}}</span>
@endif
</td>
<td>
<a href="{{ route('admin.blog-category.edit', ['blog_category' => $category->id, 'lang_code' => admin_lang()] ) }}" class="btn btn-primary btn-sm"><i class="fa fa-edit" aria-hidden="true"></i></a>
<a href="javascript:;" data-toggle="modal" data-target="#deleteModal" class="btn btn-danger btn-sm" onclick="deleteData({{ $category->id }})"><i class="fa fa-trash" aria-hidden="true"></i></a>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
<script>
"use strict"
function deleteData(id){
$("#deleteForm").attr("action",'{{ url("admin/blog-category/") }}'+"/"+id)
}
</script>
@endsection