PATH:
home
/
lab2454c
/
westernclear.net
/
resources
/
views
/
admin
/
forms
@extends('admin.layout.adminMasterLayout') @section('title', 'Form List') @section('content') <div class="content-wrapper"> @include('admin.forms.text.list') <div> <a href="{{ route('form.create') }}" class="btn btn-info font-weight-bold mb-3">+ Add New Form</a> </div> <div class="row"> <div class="col-lg-12 grid-margin stretch-card"> <div class="card"> <div class="card-body"> <h3 class="card-title">Form List</h3> <hr> <div class="table-responsive"> <table class="table table-striped"> <thead> <tr> {{-- <th>Form Desc.</th> --}} <th>E-Sign</th> <th>PDF</th> <th>Category</th> <th>Action</th> </tr> </thead> <tbody> @forelse($forms as $form) @php $esign = config("app.url").Storage::url($form->esign); $form_pdf = config("app.url").Storage::url($form->form_pdf); @endphp <tr> {{-- <td> {!! Str::limit($form->form_description, 50) !!} </td> --}} <td> @if(!empty($form->esign)) <a href="{{ isset($form->esign) ? $esign : '#' }}" target="_blank"> Show Esign </a> @else <b>N.A.</b> @endif </td> <td> @if(!empty($form->form_pdf)) <a href="{{ isset($form->form_pdf) ? $form_pdf : '#' }}" target="_blank"> Show PDF </a> @else <b>N.A.</b> @endif </td> <td> {{ isset($form->category) ? $form->category->name : '--' }} </td> <td> <a href="{{ route('form.edit', $form) }}" class="btn btn-info btn-sm"> <i class="icon-open"></i> Edit </a> <div class="d-inline-block"> <form action="{{route('form.destroy', $form->id)}}" method="POST" > @csrf @method('DELETE') <button type="submit" class="btn btn-primary btn-sm" style="cursor: pointer;" onclick="return confirm('Are you sure?')"> Delete </button> </form> </div> </td> </tr> @empty <td colspan="5" class="text-center">No Form(s) Added Yet</td> @endforelse </tbody> </table> <div class="mt-5"> {{ $forms->links('pagination::bootstrap-4') }} </div> </div> </div> </div> </div> </div> @include('admin.forms.category.list') </div> @endsection
[-] form.blade.php
[edit]
[-] create.blade.php
[edit]
[-] edit.blade.php
[edit]
[+]
..
[+]
category
[+]
text
[-] list.blade.php
[edit]