Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('.calendar').pignoseCalendar({
- lang:'es',
- theme: 'light',
- schedules: [
- <?php echo json_encode($eventos_json) ?>
- ],
- scheduleOptions: {
- colors: {
- offer: '#2fabb7',
- ad: '#5c6270'
- }
- },
- select: function(date, context) {
- console.log(date);
- }
- });
- public function dashboard() {
- $eventos = eventos();
- $eventos_json = array();
- foreach ($eventos as $item) {
- $fila = array('name'=>'luis','date'=>substr($item['fecha_hora'],0,10));
- array_push($eventos_json, $fila);
- }
- //dd($eventos);
- return view('layouts.admin.paginas.dashboard',compact('eventos','eventos_json'));
- }
- $('.calendar').pignoseCalendar({
- scheduleOptions: {
- colors: {
- offer: '#2fabb7',
- ad: '#5c6270'
- }
- },
- schedules: [{
- name: 'offer',
- date: '2017-02-08'
- }, {
- name: 'ad',
- date: '2017-02-08'
- }, {
- name: 'offer',
- date: '2017-02-05',
- }],
- select: function(date, context) {
- console.log('events for this date', context.storage.schedules);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement