@extends('admin.master') @section('title') Payment Method Add @endsection @section('sideMenuTitle') Payment Method Add @endsection @section('pageTitle') @endsection @section('bodyContent')
@if(Session::has('message'))

{{Session::get('message')}}

@endif @if(Session::has('error'))

{{Session::get('error')}}

@endif @if ($errors->any())
@endif

@if (!isset($editData)) {!! Form::open(['url' => 'paymentmethods/add', 'method' => 'post', 'name' => 'form', 'enctype' => 'multipart/form-data', 'role' => 'form']) !!} @endif @if (isset($editData)) {!! Form::open(['url' => 'paymentmethods/update', 'method' => 'post','name' => 'form', 'enctype' => 'multipart/form-data', 'role' => 'form']) !!} @endif

{!! Form::close() !!}

Now showing {{ $listData->count() * $listData->currentPage() }} out of {{ $listData->total() }} Names

@foreach($listData as $val) @endforeach
ID Type Image Status Action
{{ $i++ }} {{$val->type}} no image {{$val->status == 1 ? "Published" : "Unpublished"}} Edit @if (Auth::user()->user_role->slug == "superadmin" || Auth::user()->user_role->slug == "admin") Delete @endif @if ($val->status == 2) Publish? @endif @if ($val->status == 1) Unpublish? @endif
{{ $listData->links() }}
@endsection