PATH:
home
/
lab2454c
/
bancmils.com
/
resources
/
views
/
admin
/
socialLink
@extends('admin.layout.adminMasterLayout') @section('title', 'Social Links List') @section('content') <div class="content-wrapper"> <div> <a href="{{ route('socialLink.create') }}" class="btn btn-info font-weight-bold mb-3">+ Add New Social Link</a> </div> <div class="row"> <div class="col-lg-12 grid-margin stretch-card"> <div class="card"> <div class="card-body"> <h4 class="card-title">Social Links List</h4> <hr> <div class="table-responsive"> <table class="table table-striped"> <thead> <tr> <th>Logo</th> <th>Name</th> <th>Status</th> <th>Action</th> </tr> </thead> <tbody> @if($socialLinks->count() > 0 ) @foreach($socialLinks as $socialLink) <tr> <td class="py-1"> <img src="{{ isset($socialLink->logo) ? config("app.url").Storage::url($socialLink->logo) : asset('adminAssets/images/default-page-banner.png') }}" alt="featured_news_image"/> </td> <td> <a href="{{ $socialLink->link }}" target="_blank"> {{ $socialLink->name }} </a> </td> <td> <div class="dropdown action-label"> <a class="btn btn-info dropdown-toggle btn-sm" data-toggle="dropdown" aria-expanded="false"> <?=(isset($socialLink->status) && $socialLink->status=='active')?'<i class="fa fa-dot-circle-o text-success"></i> Active':'<i class="fa fa-dot-circle-o text-danger"></i> Inactive';?> <span class="caret"></span> </a> <div class="dropdown-menu"> <form action="{{route('socialLink.destroy', $socialLink->id)}}" method="POST" > @csrf @method('DELETE') <button type="submit" class="dropdown-item status-btn btn-sm" style="cursor: pointer;"> {!! ($socialLink->status=='active')? "<i class='fa fa-dot-circle-o text-danger'></i> Inactive":"<i class='fa fa-dot-circle-o text-success'></i> Active" !!} </button> </form> </div> </div> </td> <td> <a href="{{ route('socialLink.edit', $socialLink) }}" class="btn btn-primary btn-sm"><i class="icon-open"></i> Edit</a> </td> </tr> @endforeach @else <td colspan="5">No Social Links Listed Yet</td> @endif </tbody> </table> </div> </div> </div> </div> </div> </div> @endsection
[-] form.blade.php
[edit]
[-] create.blade.php
[edit]
[-] edit.blade.php
[edit]
[+]
..
[-] list.blade.php
[edit]