/
home
/
techb158
/
ileadtechnology.com
/
resources
/
views
/
admin
/
advertisement
/
/home/techb158/ileadtechnology.com/resources/views/admin/advertisement
mkdir
upload
Name
Size
Mode
Actions
create.blade.php
3668
0644
edit
dl
rm
edit.blade.php
3955
0644
edit
dl
rm
index.blade.php
2964
0644
edit
dl
rm
Edit:
/home/techb158/ileadtechnology.com/resources/views/admin/advertisement/index.blade.php
(2964B)
@extends('admin/layouts.master') @section('title', 'Advertisement - Admin') @section('body') @if($errors->any()) <div class="alert alert-danger"> <ul> @foreach ($errors->all() as $error) <li>{{ $error }}</li> @endforeach </ul> </div> @endif <section class="content"> @include('admin.message') <div class="row"> <div class="col-xs-12"> <div class="box box-primary"> <div class="box-header with-border"> <h3 class="box-title">{{ __('adminstaticword.Advertisement') }}</h3> <a class="btn btn-info btn-sm" href="{{url('advertisement/create')}}"> <i class="glyphicon glyphicon">+</i> {{ __('adminstaticword.Add') }}</a> </div> <!-- /.box-header --> <div class="box-body"> <table id="example1" class="table table-bordered table-striped"> <thead> <tr> <th>#</th> <th>{{ __('adminstaticword.Image') }}</th> <th>{{ __('adminstaticword.Position') }}</th> <th>{{ __('adminstaticword.Status') }}</th> <th>{{ __('adminstaticword.Edit') }}</th> <th>{{ __('adminstaticword.Delete') }}</th> </tr> </thead> <tbody id="sortable"> <?php $i=0;?> @foreach($advertisement as $adv) <?php $i++;?> <tr> <td><?php echo $i;?></td> <td> <img src="{{ asset('images/advertisement/'.$adv->image1) }}" class="img-responsive"> </td> <td>{{$adv->position}}</td> <td> @if($adv->status ==1) {{ __('adminstaticword.Active') }} @else {{ __('adminstaticword.Deactive') }} @endif </td> <th><a class="btn btn-primary btn-sm" href="{{url('advertisement/'.$adv->id)}}"> <i class="glyphicon glyphicon-pencil"></i></a></th> <td> <form method="post" action="{{url('advertisement/'.$adv->id)}} "data-parsley-validate class="form-horizontal form-label-left"> {{ csrf_field() }} {{ method_field('DELETE') }} <button type="submit" class="btn btn-danger btn-sm"><i class="fa fa-fw fa-trash-o"></i></button> </form> </td> @endforeach </tr> </tfoot> </table> </div> <!-- /.box-body --> </div> <!-- /.box --> </div> <!-- /.col --> </div> <!-- /.row --> </section> @endsection @section('scripts') @endsection
Save
cmd:
run