Current File : //home/tradevaly/public_html/resources/views/backend/pages/news/index.blade.php |
@extends('backend.ayaan.master')
@push('title') Categories @endpush
@section('css')
<!-- DataTables -->
<link href="{{ asset('/assets/libs/datatables/datatables.min.css') }}" rel="stylesheet" type="text/css" />
@endsection
@section('content')
@component('components.breadcrumb')
@slot('li_1') Dashboards @endslot
@slot('title') Top Bar @endslot
@endcomponent
<div class="row">
<div class="col-6">
<div class="card">
<div class="card-header two-text-justiry-between">
<span>Ticket Section</span>
<span>
@if($khobor->status == 0) <span class="badge bg-danger">Inactive</span> @else <span class="badge bg-success">Active</span> @endif
<a href="{{url('b2b/news/edit',$khobor->id)}}" class="btn btn-primary">
<i class="fas fa-pencil-alt"></i> Update
</a>
</span>
</div>
<div class="card-body">
{{ $khobor->title }}
</div>
</div>
</div>
<div class="col-6">
<div class="card">
<div class="card-header two-text-justiry-between">
<span>Discound Section </span>
<span>
<span class="badge bg-{{ settings()->discount_status !=1 ? 'danger': 'primary' }} ">{{ settings()->discount_status !=1 ? 'Inactive': 'Active' }}</span>
<a href="{{url('b2b/news/discount/edit')}}" class="btn btn-primary">
<i class="fas fa-pencil-alt"></i> Update
</a>
</span>
</div>
<div class="card-body">
<img src="{{asset('storage/images/admin/discount/'.settings()->discount_img)}}" style='width:100%; background:linear-gradient(to right,#cba800,#1f5c81,#5ca300) !important;' class="img-fluid p-3 mt-5 mb-5"/>
<a href="{{ settings()->discount_link}}" class="btn text-primary">
<i class="fas fa-pencil-alt"></i> Button Link
</a>
<td> </td>
</div>
</div>
</div>
</div>
<!-- end row -->
@endsection
@section('script')
<!-- Required datatable js -->
<script src="{{ asset('/assets/libs/datatables/datatables.min.js') }}"></script>
<script src="{{ asset('/assets/libs/jszip/jszip.min.js') }}"></script>
<script src="{{ asset('/assets/libs/pdfmake/pdfmake.min.js') }}"></script>
<!-- Datatable init js -->
<script type="text/javascript">
$(function () {
$(document).ready(function () {
var table = $('#datatable-buttons').DataTable({
lengthChange: false,
dom: 'Bfrtip',
buttons: ['copy', 'excel', 'pdf', 'colvis']
});
table.buttons().container().appendTo('#datatable-buttons_wrapper .col-md-6:eq(0)');
$(".dataTables_length select").addClass('form-select form-select-sm');
});
});
</script>
@endsection