Skip to content

Instantly share code, notes, and snippets.

View mshoaibdev's full-sized avatar
😀
Working..

Muhammad Shoaib mshoaibdev

😀
Working..
View GitHub Profile
<template>
<section class="pedigree-section full-screen-section has-logo dark">
<div class="container">
<div class="row">
<div class="col-md-12" v-if="data">
<h2 class="title-style text-center">
Pedigree of {{ data.full_name }}
</h2>
</div>
</div>
<template>
<div class="table-scroll-wrap pr-3 height400">
<table
v-if="Object.keys(pedstats).length !== 0"
class="table table-siblings table-pedstats"
>
<thead>
<tr>
<th>Name</th>
<th></th>
$("#end_date").datepicker({
minDate: 0,
// maxDate: (interval-1),
onSelect: function (date, inst) {
var start_date = new Date($('#start_date').val());
var end_date = new Date(date);
days = 24 * 60 * 60 * 1000;
tempStartDate = start_date;
diffDays = Math.round(Math.abs((start_date - end_date) / (days)));
$('.date_times_left').empty();
@mshoaibdev
mshoaibdev / AppServiceProvider.php
Created August 30, 2018 09:12 — forked from simonhamp/AppServiceProvider.php
A pageable Collection implementation for Laravel
<?php
namespace App\Providers;
use Illuminate\Support\Collection;
use Illuminate\Pagination\LengthAwarePaginator;
class AppServiceProvider extends ServiceProvider
{
public function boot()