Viewing file: banner.blade.php (2.78 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
@extends('layouts.app') @section('head') @include('layouts.partials.headersection',['title'=>'Banner Ads']) @endsection @section('content') @if(Session::has('error')) <div class="row"> <div class="col-sm-12"> <div class="alert alert-danger alert-dismissible fade show" role="alert"> <strong>{{ Session::get('error') }}</strong> <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> </div> </div> @endif <div class="card"> <div class="card-body">
<div class="float-left mb-2"> <button class="btn btn-primary" data-toggle="modal" data-target="#exampleModal">{{ __('Create New') }}</button> </div> <div class="table-responsive custom-table"> <table class="table"> <thead> <tr> <th class="am-title">{{ __('Image') }}</th> <th class="am-title">{{ __('Url') }}</th> <th class="text-right">{{ __('Last Modified') }}</th> <th class="text-right">{{ __('Delete') }}</th> </tr> </thead> <tbody> @if(!empty($row)) <tr> <td class="text-left"><img src="{{ asset($row->name) }}" height="100"></td> <td class="text-left">{{ $row->slug }}</td> <td class="text-right">{{ $row->updated_at->diffForHumans() }}</td> <td class="text-right"><a href="{{ route('seller.ad.destroy',$row->id) }}" class="btn btn-danger cancel"><i class="fa fa-trash"></i></a></td> </tr> @endif </tbody> </table> </div> </div> </div>
<!-- Modal --> <div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered modal-lg"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel">{{ __('Add Ads') }}</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <form method="post" action="{{ route('seller.ads.update',11) }}" class="basicform_with_reload"> @csrf @method('PUT') <div class="form-group"> <label>{{ __('Select Image') }}</label> <input type="file" accept="Image/*" name="file" required="" class="form-control"> </div> <div class="form-group"> <label>{{ __('Url') }}</label> <input type="text" name="url" required="" value="#" class="form-control"> </div>
</div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal">{{ __('Close') }}</button> <button type="submit" class="btn btn-primary basicbtn">{{ __('Submit') }}</button> </form> </div> </div> </div> </div> @endsection @push('js') <script src="{{ asset('assets/js/form.js') }}"></script> @endpush
|