Anons79 Mini Shell

Directory : /home/aplikasiposinfo/public_html/paraduta.fixmate.id/resources/views/reward_promo/
Upload File :
Current File : /home/aplikasiposinfo/public_html/paraduta.fixmate.id/resources/views/reward_promo/index.blade.php

@extends('layouts.app',['title'=>'Pesan Reward & Promo'])

@section('content')
    @push('scripts')
        {{-- tooltips --}}
        <script type="text/javascript" src="{{ url('material') }}/js/pages/ui/tooltips-popovers.js"></script>
    @endpush
    @php
        $canEdit = \Helper::hakAkses('pesan&followup', 'edit');
    @endphp
    <div class="container-fluid">
        <div class="block-header">
            <h2>Pesan Reward & Promo</h2>
        </div>

        <div class="row clearfix">
            <!-- Task Info -->
            <div class="col-xs-12 col-sm-12 col-md-12">
                <div class="card">
                    <div class="header">
                        @if($canEdit)
                            <a href="{{ route('reward-promo.create') }}" class="btn btn-primary">
                                Tambah Pesan Reward & Promo
                            </a>
                        @endif
                      

                    </div>
                    <div class="body">
                        <div class="table-responsive">
                            <table class="table table-hover dashboard-task-infos">
                                <thead>
                                    <tr>
                                        <th>Kategori Pelanggan</th>
                                        <th>Judul</th>
                                        <th>Isi</th>
                                        <th>Berulang</th>
                                        <th>Aktif</th>
                                        <th>Tools</th>
                                    </tr>
                                </thead>
                                <tbody>

                                    @foreach ($datas as $data)
                                        <tr>
                                            <td>{{ ucwords(str_replace('_', ' ', $data->status_pelanggan)) }}</td>
                                            <td>{{ $data->judul }}</td>
                                            <td style="max-width: 400px;">{{ $data->isi }}</td>
                                            <td>{{ $data->berulang ? "berulang" : "sekali" }}</td>
                                            <td>{{ $data->aktif ? "aktif" : "tidak aktif" }}</td>
                                            <td>


                                                @if($canEdit)
                                                    <a href="{{ route('reward-promo.edit', $data->id) }}" class="btn btn-primary"><i
                                                            class="material-icons">edit</i></a>
                                                    <form action="{{ route('reward-promo.destroy', $data->id) }}" method="POST"
                                                        style="display:inline">
                                                        @csrf
                                                        @method('DELETE')
                                                        <button type="submit" class="btn btn-danger" id="hapus-button"><i
                                                                class="material-icons">delete</i></button>
                                                    </form>
                                                @endif
                                            </td>
                                        </tr>
                                    @endforeach
                                    <tr></tr>

                                </tbody>
                                <tfoot>
                                    @include('layouts.includes.pagination')
                                </tfoot>

                            </table>
                        </div>
                    </div>
                </div>
            </div>
            <!-- #END# Task Info -->
        </div>
    </div>
@endsection

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]