2017 © Pedro Peláez
 

library reservations-calendar

This is rewriten [https://github.com/bastianallgeier/gantti] Gantt Class to fit my needs Eg. To show multiple events (bookings) per resource and Laravel 5.3 compatibility

image

nachofassini/reservations-calendar

This is rewriten [https://github.com/bastianallgeier/gantti] Gantt Class to fit my needs Eg. To show multiple events (bookings) per resource and Laravel 5.3 compatibility

  • Tuesday, October 18, 2016
  • by nachofassini
  • Repository
  • 1 Watchers
  • 2 Stars
  • 41 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 9 Forks
  • 0 Open issues
  • 5 Versions
  • 3 % Grown

The README.md

Laravel 5 Booking calendar

About

This is rewriten [https://github.com/bastianallgeier/gantti] Gantt Class to fit my needs Eg. To show multiple events (bookings) per resource and Laravel 5 compatibility, (*1)

Screenshot

, (*2)

Installation

Require ognjenm/reservations-calendar in composer.json and run composer update., (*3)

{
    "require": {
        "laravel/framework": "5.2.*",
        ...
        "ognjenm/reservations-calendar": "*"
    }
    ...
}

Composer will download the package. After the package is downloaded, open config/app.php and add the service provider and alias as below:, (*4)


'providers' => array( ... \Ognjenm\ReservationsCalendar\ReservationsCalendarServiceProvider::class, ), 'aliases' => array( ... 'ResCalendar' => \Ognjenm\ReservationsCalendar\Facades\ResCalendar::class, ),

Finally you need to publish a configuration file by running the following Artisan command., (*5)

php artisan vendor:publish --tag=public --force

Include css in your view, (*6)

<link href="{{asset('vendor/ognjenm/calendar.css}}" rel="stylesheet" type="text/css">

Examples

Prepare data, (*7)


$data[] = [ 'label' => 'Soba 1', 'info' => '2+1', 'class' => 'blue', 'events' => [ [ 'label' => 'Ognjen Miletic', 'tooltip' => '
Potvrdjena rezervacija
<br>

od: 19.06.2015, (*8)

do: 23.06.2015, (*9)

Ukupno: 578 EUR, (*10)

', 'url' => 'http://google.com', 'start' => '2015-06-19', 'end' => '2015-06-23', 'class' => '', 'icon' => 'fa-arrow-down' ], [ 'label' => 'Madona i ekipa', 'tooltip' => '
Potvrdjena rezervacija
<br>

od: 19.06.2015, (*11)

do: 23.06.2015, (*12)

Ukupno: 1578 EUR, (*13)

', 'start' => '2015-06-10', 'end' => '2015-06-19', 'class' => 'checkout', 'icon' => 'fa-sign-out' ], [ 'label' => 'Jovan Jovanovic Zmaj', 'start' => '2015-06-23', 'end' => '2015-06-30', 'class' => 'uncomfirmed', 'icon' => 'fa-question' ], [ 'label' => 'Nikola Nikolic', 'tooltip' => '
This is some html
', 'url' => 'http://google.com', 'start' => '2015-06-30', 'end' => '2015-07-15', 'class' => 'stay' ], ] ];

Render calendar, (*14)

{!! ResCalendar::render($data,['title'=>'Hotel'])!!}

Contributions are welcomed

The Versions

18/10 2016

dev-master

9999999-dev

This is rewriten [https://github.com/bastianallgeier/gantti] Gantt Class to fit my needs Eg. To show multiple events (bookings) per resource and Laravel 5.3 compatibility

  Sources   Download

The Requires

 

18/10 2016

3.0.0

3.0.0.0

This is rewriten [https://github.com/bastianallgeier/gantti] Gantt Class to fit my needs Eg. To show multiple events (bookings) per resource and Laravel 5.3 compatibility

  Sources   Download

The Requires

 

02/06 2016

2.0.0

2.0.0.0

This is rewriten [https://github.com/bastianallgeier/gantti] Gantt Class to fit my needs Eg. To show multiple events (bookings) per resource and Laravel 4 compatibility

  Sources   Download

The Requires

 

20/07 2015

1.0.0

1.0.0.0

This is rewriten [https://github.com/bastianallgeier/gantti] Gantt Class to fit my needs Eg. To show multiple events (bookings) per resource and Laravel 4 compatibility

  Sources   Download

The Requires

 

23/06 2015

0.9.0

0.9.0.0

This is rewriten [https://github.com/bastianallgeier/gantti] Gantt Class to fit my needs Eg. To show multiple events (bookings) per resource and Laravel 4 compatibility

  Sources   Download

The Requires