PHP code example of repat / nachofassini-reservations-calendar
1. Go to this page and download the library: Download repat/nachofassini-reservations-calendar library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
repat / nachofassini-reservations-calendar example snippets
'providers' => array(
...
\Ognjenm\ReservationsCalendar\ReservationsCalendarServiceProvider::class,
),
'aliases' => array(
...
'ResCalendar' => \Ognjenm\ReservationsCalendar\Facades\ResCalendar::class,
),
$data[] = [
'label' => 'Soba 1',
'info' => '2+1',
'class' => 'blue',
'events' => [
[
'label' => 'Ognjen Miletic',
'tooltip' => '<h5>Potvrdjena rezervacija</h5><br><p>od: 19.06.2015</p><p>do: 23.06.2015</p><p>Ukupno: 578 EUR</p>',
'url' => 'http://google.com',
'start' => '2015-06-19',
'end' => '2015-06-23',
'class' => '',
'icon' => 'fa-arrow-down'
],
[
'label' => 'Madona i ekipa',
'tooltip' => '<h5>Potvrdjena rezervacija</h5><br><p>od: 19.06.2015</p><p>do: 23.06.2015</p><p>Ukupno: 1578 EUR</p>',
'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' => '<h5>This is some html</h5>',
'url' => 'http://google.com',
'start' => '2015-06-30',
'end' => '2015-07-15',
'class' => 'stay'
],
]
];
{!! ResCalendar::render($data, ['title' => 'Hotel']) !!}