Current File : //home/tradevaly/text.tradevaly.com.bd/resources/views/user/pages/package/featured.blade.php |
@extends('backend.layouts.app')
@push('style')
@endpush
@section('content')
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header card-header-info card-header-icon">
<div class="card-icon">
<i class="material-icons">Visibility</i>
</div>
<h4 class="card-title">Featured</h4>
<a class="btn btn-rose float-right" href="{{ route('admin.package.addfeatured', $id) }}">ADD NEW</a>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th class="text-center">#</th>
<th>Name</th>
<th>Status</th>
<th class="text-right">Actions</th>
</tr>
</thead>
<tbody>
@php
$i = 0;
@endphp
@foreach ($packages as $package)
<tr>
<?php $i++;
?>
<td class="text-center">{{$i}}</td>
<td> {{$package->feature->name}}</td>
<td>
@if($package['value'] == 0)
<button class="btn btn-danger" title="Featured" style="color: #fff">
NO
</button>
@elseif($package['value'] == 1)
<button class="btn btn-success" title="Featured" style="color: #fff">
Yes
</button>
@else
{{$package['value']}}
@endif
</td>
<td class="td-actions text-right">
<a href="{{route('admin.package.deletefeatured',$package->id)}}" name="package" class="btn btn-danger confirmDelete" title="Delete" style="color: #fff">
<i class="material-icons">close</i>
</a>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
@stop
@push('script')
@endpush