This commit is contained in:
Mathieu Lagace
2019-09-11 06:57:45 -04:00
parent 133f430445
commit 04dd5ee6b7
4 changed files with 205 additions and 224 deletions

View File

@@ -196,7 +196,8 @@ class ScheduleController extends Controller
public function printtopdf($id) public function printtopdf($id)
{ {
$event = \App\Event::find($id); $event = \App\Event::find($id);
$pdf = PDF::loadView('admin.schedule.print.event',['event' => $event]); //return view('admin.schedule.print.event',['event' => $event]);
$pdf = PDF::loadView('admin.schedule.print.event',['event' => $event])->setPaper('8.5x11', 'landscape');
return $pdf->download($event->date_begin.'.pdf'); return $pdf->download($event->date_begin.'.pdf');
} }

299
composer.lock generated
View File

@@ -1,28 +1,28 @@
{ {
"_readme": [ "_readme": [
"This file locks the dependencies of your project to a known state", "This file locks the dependencies of your project to a known state",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "24a0b732198a68feae22520e2527cb91", "content-hash": "24a0b732198a68feae22520e2527cb91",
"packages": [ "packages": [
{ {
"name": "barryvdh/laravel-dompdf", "name": "barryvdh/laravel-dompdf",
"version": "v0.8.4", "version": "v0.8.5",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/barryvdh/laravel-dompdf.git", "url": "https://github.com/barryvdh/laravel-dompdf.git",
"reference": "3fd817065e1c820b1ddace8b2bf65ca45088df4f" "reference": "7393732b2f3a3ee357974cbb0c46c9b65b84dad1"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/barryvdh/laravel-dompdf/zipball/3fd817065e1c820b1ddace8b2bf65ca45088df4f", "url": "https://api.github.com/repos/barryvdh/laravel-dompdf/zipball/7393732b2f3a3ee357974cbb0c46c9b65b84dad1",
"reference": "3fd817065e1c820b1ddace8b2bf65ca45088df4f", "reference": "7393732b2f3a3ee357974cbb0c46c9b65b84dad1",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"dompdf/dompdf": "^0.8", "dompdf/dompdf": "^0.8",
"illuminate/support": "5.5.x|5.6.x|5.7.x|5.8.x", "illuminate/support": "^5.5|^6",
"php": ">=7" "php": ">=7"
}, },
"type": "library", "type": "library",
@@ -60,7 +60,7 @@
"laravel", "laravel",
"pdf" "pdf"
], ],
"time": "2019-02-26T18:07:43+00:00" "time": "2019-08-23T14:30:33+00:00"
}, },
{ {
"name": "barryvdh/laravel-ide-helper", "name": "barryvdh/laravel-ide-helper",
@@ -187,16 +187,16 @@
}, },
{ {
"name": "composer/ca-bundle", "name": "composer/ca-bundle",
"version": "1.2.3", "version": "1.2.4",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/composer/ca-bundle.git", "url": "https://github.com/composer/ca-bundle.git",
"reference": "f26a67e397be0e5c00d7c52ec7b5010098e15ce5" "reference": "10bb96592168a0f8e8f6dcde3532d9fa50b0b527"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/composer/ca-bundle/zipball/f26a67e397be0e5c00d7c52ec7b5010098e15ce5", "url": "https://api.github.com/repos/composer/ca-bundle/zipball/10bb96592168a0f8e8f6dcde3532d9fa50b0b527",
"reference": "f26a67e397be0e5c00d7c52ec7b5010098e15ce5", "reference": "10bb96592168a0f8e8f6dcde3532d9fa50b0b527",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -239,7 +239,7 @@
"ssl", "ssl",
"tls" "tls"
], ],
"time": "2019-08-02T09:05:43+00:00" "time": "2019-08-30T08:44:50+00:00"
}, },
{ {
"name": "composer/composer", "name": "composer/composer",
@@ -875,25 +875,25 @@
}, },
{ {
"name": "fideloper/proxy", "name": "fideloper/proxy",
"version": "4.2.0", "version": "4.2.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/fideloper/TrustedProxy.git", "url": "https://github.com/fideloper/TrustedProxy.git",
"reference": "39a4c2165e578bc771f5dc031c273210a3a9b6d2" "reference": "03085e58ec7bee24773fa5a8850751a6e61a7e8a"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/fideloper/TrustedProxy/zipball/39a4c2165e578bc771f5dc031c273210a3a9b6d2", "url": "https://api.github.com/repos/fideloper/TrustedProxy/zipball/03085e58ec7bee24773fa5a8850751a6e61a7e8a",
"reference": "39a4c2165e578bc771f5dc031c273210a3a9b6d2", "reference": "03085e58ec7bee24773fa5a8850751a6e61a7e8a",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"illuminate/contracts": "~5.0|~6.0", "illuminate/contracts": "^5.0|^6.0|^7.0",
"php": ">=5.4.0" "php": ">=5.4.0"
}, },
"require-dev": { "require-dev": {
"illuminate/http": "~5.6|~6.0", "illuminate/http": "^5.0|^6.0|^7.0",
"mockery/mockery": "~1.0", "mockery/mockery": "^1.0",
"phpunit/phpunit": "^6.0" "phpunit/phpunit": "^6.0"
}, },
"type": "library", "type": "library",
@@ -925,7 +925,7 @@
"proxy", "proxy",
"trusted proxy" "trusted proxy"
], ],
"time": "2019-07-29T16:49:45+00:00" "time": "2019-09-03T16:45:42+00:00"
}, },
{ {
"name": "guzzlehttp/guzzle", "name": "guzzlehttp/guzzle",
@@ -1559,8 +1559,8 @@
"authors": [ "authors": [
{ {
"name": "Luís Otávio Cobucci Oblonczyk", "name": "Luís Otávio Cobucci Oblonczyk",
"role": "Developer", "email": "lcobucci@gmail.com",
"email": "lcobucci@gmail.com" "role": "Developer"
} }
], ],
"description": "A simple library to work with JSON Web Token and JSON Web Signature", "description": "A simple library to work with JSON Web Token and JSON Web Signature",
@@ -1572,16 +1572,16 @@
}, },
{ {
"name": "league/flysystem", "name": "league/flysystem",
"version": "1.0.53", "version": "1.0.55",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/thephpleague/flysystem.git", "url": "https://github.com/thephpleague/flysystem.git",
"reference": "08e12b7628f035600634a5e76d95b5eb66cea674" "reference": "33c91155537c6dc899eacdc54a13ac6303f156e6"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/thephpleague/flysystem/zipball/08e12b7628f035600634a5e76d95b5eb66cea674", "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/33c91155537c6dc899eacdc54a13ac6303f156e6",
"reference": "08e12b7628f035600634a5e76d95b5eb66cea674", "reference": "33c91155537c6dc899eacdc54a13ac6303f156e6",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -1652,20 +1652,20 @@
"sftp", "sftp",
"storage" "storage"
], ],
"time": "2019-06-18T20:09:29+00:00" "time": "2019-08-24T11:17:19+00:00"
}, },
{ {
"name": "monolog/monolog", "name": "monolog/monolog",
"version": "1.24.0", "version": "1.25.1",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/Seldaek/monolog.git", "url": "https://github.com/Seldaek/monolog.git",
"reference": "bfc9ebb28f97e7a24c45bdc3f0ff482e47bb0266" "reference": "70e65a5470a42cfec1a7da00d30edb6e617e8dcf"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/Seldaek/monolog/zipball/bfc9ebb28f97e7a24c45bdc3f0ff482e47bb0266", "url": "https://api.github.com/repos/Seldaek/monolog/zipball/70e65a5470a42cfec1a7da00d30edb6e617e8dcf",
"reference": "bfc9ebb28f97e7a24c45bdc3f0ff482e47bb0266", "reference": "70e65a5470a42cfec1a7da00d30edb6e617e8dcf",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -1730,7 +1730,7 @@
"logging", "logging",
"psr-3" "psr-3"
], ],
"time": "2018-11-05T09:00:11+00:00" "time": "2019-09-06T13:49:17+00:00"
}, },
{ {
"name": "nesbot/carbon", "name": "nesbot/carbon",
@@ -1828,9 +1828,9 @@
"authors": [ "authors": [
{ {
"name": "Tim Lytle", "name": "Tim Lytle",
"role": "Developer",
"email": "tim@nexmo.com", "email": "tim@nexmo.com",
"homepage": "http://twitter.com/tjlytle" "homepage": "http://twitter.com/tjlytle",
"role": "Developer"
} }
], ],
"description": "PHP Client for using Nexmo's API.", "description": "PHP Client for using Nexmo's API.",
@@ -1838,16 +1838,16 @@
}, },
{ {
"name": "nikic/php-parser", "name": "nikic/php-parser",
"version": "v4.2.3", "version": "v4.2.4",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/nikic/PHP-Parser.git", "url": "https://github.com/nikic/PHP-Parser.git",
"reference": "e612609022e935f3d0337c1295176505b41188c8" "reference": "97e59c7a16464196a8b9c77c47df68e4a39a45c4"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/e612609022e935f3d0337c1295176505b41188c8", "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/97e59c7a16464196a8b9c77c47df68e4a39a45c4",
"reference": "e612609022e935f3d0337c1295176505b41188c8", "reference": "97e59c7a16464196a8b9c77c47df68e4a39a45c4",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -1885,7 +1885,7 @@
"parser", "parser",
"php" "php"
], ],
"time": "2019-08-12T20:17:41+00:00" "time": "2019-09-01T07:51:21+00:00"
}, },
{ {
"name": "paragonie/random_compat", "name": "paragonie/random_compat",
@@ -2818,16 +2818,16 @@
}, },
{ {
"name": "symfony/console", "name": "symfony/console",
"version": "v4.3.3", "version": "v4.3.4",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/console.git", "url": "https://github.com/symfony/console.git",
"reference": "8b0ae5742ce9aaa8b0075665862c1ca397d1c1d9" "reference": "de63799239b3881b8a08f8481b22348f77ed7b36"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/console/zipball/8b0ae5742ce9aaa8b0075665862c1ca397d1c1d9", "url": "https://api.github.com/repos/symfony/console/zipball/de63799239b3881b8a08f8481b22348f77ed7b36",
"reference": "8b0ae5742ce9aaa8b0075665862c1ca397d1c1d9", "reference": "de63799239b3881b8a08f8481b22348f77ed7b36",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -2889,20 +2889,20 @@
], ],
"description": "Symfony Console Component", "description": "Symfony Console Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2019-07-24T17:13:59+00:00" "time": "2019-08-26T08:26:39+00:00"
}, },
{ {
"name": "symfony/css-selector", "name": "symfony/css-selector",
"version": "v4.3.3", "version": "v4.3.4",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/css-selector.git", "url": "https://github.com/symfony/css-selector.git",
"reference": "105c98bb0c5d8635bea056135304bd8edcc42b4d" "reference": "c6e5e2a00db768c92c3ae131532af4e1acc7bd03"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/css-selector/zipball/105c98bb0c5d8635bea056135304bd8edcc42b4d", "url": "https://api.github.com/repos/symfony/css-selector/zipball/c6e5e2a00db768c92c3ae131532af4e1acc7bd03",
"reference": "105c98bb0c5d8635bea056135304bd8edcc42b4d", "reference": "c6e5e2a00db768c92c3ae131532af4e1acc7bd03",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -2942,20 +2942,20 @@
], ],
"description": "Symfony CssSelector Component", "description": "Symfony CssSelector Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2019-01-16T21:53:39+00:00" "time": "2019-08-20T14:07:54+00:00"
}, },
{ {
"name": "symfony/debug", "name": "symfony/debug",
"version": "v4.3.3", "version": "v4.3.4",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/debug.git", "url": "https://github.com/symfony/debug.git",
"reference": "527887c3858a2462b0137662c74837288b998ee3" "reference": "afcdea44a2e399c1e4b52246ec8d54c715393ced"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/debug/zipball/527887c3858a2462b0137662c74837288b998ee3", "url": "https://api.github.com/repos/symfony/debug/zipball/afcdea44a2e399c1e4b52246ec8d54c715393ced",
"reference": "527887c3858a2462b0137662c74837288b998ee3", "reference": "afcdea44a2e399c1e4b52246ec8d54c715393ced",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -2998,20 +2998,20 @@
], ],
"description": "Symfony Debug Component", "description": "Symfony Debug Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2019-07-23T11:21:36+00:00" "time": "2019-08-20T14:27:59+00:00"
}, },
{ {
"name": "symfony/event-dispatcher", "name": "symfony/event-dispatcher",
"version": "v4.3.3", "version": "v4.3.4",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/event-dispatcher.git", "url": "https://github.com/symfony/event-dispatcher.git",
"reference": "212b020949331b6531250584531363844b34a94e" "reference": "429d0a1451d4c9c4abe1959b2986b88794b9b7d2"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/212b020949331b6531250584531363844b34a94e", "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/429d0a1451d4c9c4abe1959b2986b88794b9b7d2",
"reference": "212b020949331b6531250584531363844b34a94e", "reference": "429d0a1451d4c9c4abe1959b2986b88794b9b7d2",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -3068,7 +3068,7 @@
], ],
"description": "Symfony EventDispatcher Component", "description": "Symfony EventDispatcher Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2019-06-27T06:42:14+00:00" "time": "2019-08-26T08:55:16+00:00"
}, },
{ {
"name": "symfony/event-dispatcher-contracts", "name": "symfony/event-dispatcher-contracts",
@@ -3130,16 +3130,16 @@
}, },
{ {
"name": "symfony/filesystem", "name": "symfony/filesystem",
"version": "v4.3.3", "version": "v4.3.4",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/filesystem.git", "url": "https://github.com/symfony/filesystem.git",
"reference": "b9896d034463ad6fd2bf17e2bf9418caecd6313d" "reference": "9abbb7ef96a51f4d7e69627bc6f63307994e4263"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/filesystem/zipball/b9896d034463ad6fd2bf17e2bf9418caecd6313d", "url": "https://api.github.com/repos/symfony/filesystem/zipball/9abbb7ef96a51f4d7e69627bc6f63307994e4263",
"reference": "b9896d034463ad6fd2bf17e2bf9418caecd6313d", "reference": "9abbb7ef96a51f4d7e69627bc6f63307994e4263",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -3176,20 +3176,20 @@
], ],
"description": "Symfony Filesystem Component", "description": "Symfony Filesystem Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2019-06-23T08:51:25+00:00" "time": "2019-08-20T14:07:54+00:00"
}, },
{ {
"name": "symfony/finder", "name": "symfony/finder",
"version": "v4.3.3", "version": "v4.3.4",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/finder.git", "url": "https://github.com/symfony/finder.git",
"reference": "9638d41e3729459860bb96f6247ccb61faaa45f2" "reference": "86c1c929f0a4b24812e1eb109262fc3372c8e9f2"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/finder/zipball/9638d41e3729459860bb96f6247ccb61faaa45f2", "url": "https://api.github.com/repos/symfony/finder/zipball/86c1c929f0a4b24812e1eb109262fc3372c8e9f2",
"reference": "9638d41e3729459860bb96f6247ccb61faaa45f2", "reference": "86c1c929f0a4b24812e1eb109262fc3372c8e9f2",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -3225,20 +3225,20 @@
], ],
"description": "Symfony Finder Component", "description": "Symfony Finder Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2019-06-28T13:16:30+00:00" "time": "2019-08-14T12:26:46+00:00"
}, },
{ {
"name": "symfony/http-foundation", "name": "symfony/http-foundation",
"version": "v4.3.3", "version": "v4.3.4",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/http-foundation.git", "url": "https://github.com/symfony/http-foundation.git",
"reference": "8b778ee0c27731105fbf1535f51793ad1ae0ba2b" "reference": "d804bea118ff340a12e22a79f9c7e7eb56b35adc"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/http-foundation/zipball/8b778ee0c27731105fbf1535f51793ad1ae0ba2b", "url": "https://api.github.com/repos/symfony/http-foundation/zipball/d804bea118ff340a12e22a79f9c7e7eb56b35adc",
"reference": "8b778ee0c27731105fbf1535f51793ad1ae0ba2b", "reference": "d804bea118ff340a12e22a79f9c7e7eb56b35adc",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -3280,20 +3280,20 @@
], ],
"description": "Symfony HttpFoundation Component", "description": "Symfony HttpFoundation Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2019-07-23T11:21:36+00:00" "time": "2019-08-26T08:55:16+00:00"
}, },
{ {
"name": "symfony/http-kernel", "name": "symfony/http-kernel",
"version": "v4.3.3", "version": "v4.3.4",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/http-kernel.git", "url": "https://github.com/symfony/http-kernel.git",
"reference": "a414548d236ddd8fa3df52367d583e82339c5e95" "reference": "5e0fc71be03d52cd00c423061cfd300bd6f92a52"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/http-kernel/zipball/a414548d236ddd8fa3df52367d583e82339c5e95", "url": "https://api.github.com/repos/symfony/http-kernel/zipball/5e0fc71be03d52cd00c423061cfd300bd6f92a52",
"reference": "a414548d236ddd8fa3df52367d583e82339c5e95", "reference": "5e0fc71be03d52cd00c423061cfd300bd6f92a52",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -3372,20 +3372,20 @@
], ],
"description": "Symfony HttpKernel Component", "description": "Symfony HttpKernel Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2019-07-28T07:10:23+00:00" "time": "2019-08-26T16:47:42+00:00"
}, },
{ {
"name": "symfony/mime", "name": "symfony/mime",
"version": "v4.3.3", "version": "v4.3.4",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/mime.git", "url": "https://github.com/symfony/mime.git",
"reference": "6b7148029b1dd5eda1502064f06d01357b7b2d8b" "reference": "987a05df1c6ac259b34008b932551353f4f408df"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/mime/zipball/6b7148029b1dd5eda1502064f06d01357b7b2d8b", "url": "https://api.github.com/repos/symfony/mime/zipball/987a05df1c6ac259b34008b932551353f4f408df",
"reference": "6b7148029b1dd5eda1502064f06d01357b7b2d8b", "reference": "987a05df1c6ac259b34008b932551353f4f408df",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -3394,7 +3394,7 @@
"symfony/polyfill-mbstring": "^1.0" "symfony/polyfill-mbstring": "^1.0"
}, },
"require-dev": { "require-dev": {
"egulias/email-validator": "^2.0", "egulias/email-validator": "^2.1.10",
"symfony/dependency-injection": "~3.4|^4.1" "symfony/dependency-injection": "~3.4|^4.1"
}, },
"type": "library", "type": "library",
@@ -3431,7 +3431,7 @@
"mime", "mime",
"mime-type" "mime-type"
], ],
"time": "2019-07-19T16:21:19+00:00" "time": "2019-08-22T08:16:11+00:00"
}, },
{ {
"name": "symfony/polyfill-ctype", "name": "symfony/polyfill-ctype",
@@ -3786,16 +3786,16 @@
}, },
{ {
"name": "symfony/process", "name": "symfony/process",
"version": "v4.3.3", "version": "v4.3.4",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/process.git", "url": "https://github.com/symfony/process.git",
"reference": "856d35814cf287480465bb7a6c413bb7f5f5e69c" "reference": "e89969c00d762349f078db1128506f7f3dcc0d4a"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/process/zipball/856d35814cf287480465bb7a6c413bb7f5f5e69c", "url": "https://api.github.com/repos/symfony/process/zipball/e89969c00d762349f078db1128506f7f3dcc0d4a",
"reference": "856d35814cf287480465bb7a6c413bb7f5f5e69c", "reference": "e89969c00d762349f078db1128506f7f3dcc0d4a",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -3831,20 +3831,20 @@
], ],
"description": "Symfony Process Component", "description": "Symfony Process Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2019-05-30T16:10:05+00:00" "time": "2019-08-26T08:26:39+00:00"
}, },
{ {
"name": "symfony/routing", "name": "symfony/routing",
"version": "v4.3.3", "version": "v4.3.4",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/routing.git", "url": "https://github.com/symfony/routing.git",
"reference": "a88c47a5861549f5dc1197660818084c3b67d773" "reference": "ff1049f6232dc5b6023b1ff1c6de56f82bcd264f"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/routing/zipball/a88c47a5861549f5dc1197660818084c3b67d773", "url": "https://api.github.com/repos/symfony/routing/zipball/ff1049f6232dc5b6023b1ff1c6de56f82bcd264f",
"reference": "a88c47a5861549f5dc1197660818084c3b67d773", "reference": "ff1049f6232dc5b6023b1ff1c6de56f82bcd264f",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -3907,20 +3907,20 @@
"uri", "uri",
"url" "url"
], ],
"time": "2019-07-23T14:43:56+00:00" "time": "2019-08-26T08:26:39+00:00"
}, },
{ {
"name": "symfony/service-contracts", "name": "symfony/service-contracts",
"version": "v1.1.5", "version": "v1.1.6",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/service-contracts.git", "url": "https://github.com/symfony/service-contracts.git",
"reference": "f391a00de78ec7ec8cf5cdcdae59ec7b883edb8d" "reference": "ea7263d6b6d5f798b56a45a5b8d686725f2719a3"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/service-contracts/zipball/f391a00de78ec7ec8cf5cdcdae59ec7b883edb8d", "url": "https://api.github.com/repos/symfony/service-contracts/zipball/ea7263d6b6d5f798b56a45a5b8d686725f2719a3",
"reference": "f391a00de78ec7ec8cf5cdcdae59ec7b883edb8d", "reference": "ea7263d6b6d5f798b56a45a5b8d686725f2719a3",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -3965,26 +3965,26 @@
"interoperability", "interoperability",
"standards" "standards"
], ],
"time": "2019-06-13T11:15:36+00:00" "time": "2019-08-20T14:44:19+00:00"
}, },
{ {
"name": "symfony/translation", "name": "symfony/translation",
"version": "v4.3.3", "version": "v4.3.4",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/translation.git", "url": "https://github.com/symfony/translation.git",
"reference": "4e3e39cc485304f807622bdc64938e4633396406" "reference": "28498169dd334095fa981827992f3a24d50fed0f"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/translation/zipball/4e3e39cc485304f807622bdc64938e4633396406", "url": "https://api.github.com/repos/symfony/translation/zipball/28498169dd334095fa981827992f3a24d50fed0f",
"reference": "4e3e39cc485304f807622bdc64938e4633396406", "reference": "28498169dd334095fa981827992f3a24d50fed0f",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": "^7.1.3", "php": "^7.1.3",
"symfony/polyfill-mbstring": "~1.0", "symfony/polyfill-mbstring": "~1.0",
"symfony/translation-contracts": "^1.1.2" "symfony/translation-contracts": "^1.1.6"
}, },
"conflict": { "conflict": {
"symfony/config": "<3.4", "symfony/config": "<3.4",
@@ -4041,20 +4041,20 @@
], ],
"description": "Symfony Translation Component", "description": "Symfony Translation Component",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"time": "2019-07-18T10:34:59+00:00" "time": "2019-08-26T08:55:16+00:00"
}, },
{ {
"name": "symfony/translation-contracts", "name": "symfony/translation-contracts",
"version": "v1.1.5", "version": "v1.1.6",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/translation-contracts.git", "url": "https://github.com/symfony/translation-contracts.git",
"reference": "cb4b18ad7b92a26e83b65dde940fab78339e6f3c" "reference": "325b17c24f3ee23cbecfa63ba809c6d89b5fa04a"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/translation-contracts/zipball/cb4b18ad7b92a26e83b65dde940fab78339e6f3c", "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/325b17c24f3ee23cbecfa63ba809c6d89b5fa04a",
"reference": "cb4b18ad7b92a26e83b65dde940fab78339e6f3c", "reference": "325b17c24f3ee23cbecfa63ba809c6d89b5fa04a",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -4098,20 +4098,20 @@
"interoperability", "interoperability",
"standards" "standards"
], ],
"time": "2019-06-13T11:15:36+00:00" "time": "2019-08-02T12:15:04+00:00"
}, },
{ {
"name": "symfony/var-dumper", "name": "symfony/var-dumper",
"version": "v4.3.3", "version": "v4.3.4",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/var-dumper.git", "url": "https://github.com/symfony/var-dumper.git",
"reference": "e4110b992d2cbe198d7d3b244d079c1c58761d07" "reference": "641043e0f3e615990a0f29479f9c117e8a6698c6"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/e4110b992d2cbe198d7d3b244d079c1c58761d07", "url": "https://api.github.com/repos/symfony/var-dumper/zipball/641043e0f3e615990a0f29479f9c117e8a6698c6",
"reference": "e4110b992d2cbe198d7d3b244d079c1c58761d07", "reference": "641043e0f3e615990a0f29479f9c117e8a6698c6",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -4174,7 +4174,7 @@
"debug", "debug",
"dump" "dump"
], ],
"time": "2019-07-27T06:42:46+00:00" "time": "2019-08-26T08:26:39+00:00"
}, },
{ {
"name": "tijsverkoyen/css-to-inline-styles", "name": "tijsverkoyen/css-to-inline-styles",
@@ -4215,8 +4215,8 @@
"authors": [ "authors": [
{ {
"name": "Tijs Verkoyen", "name": "Tijs Verkoyen",
"role": "Developer", "email": "css_to_inline_styles@verkoyen.eu",
"email": "css_to_inline_styles@verkoyen.eu" "role": "Developer"
} }
], ],
"description": "CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.", "description": "CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.",
@@ -4443,8 +4443,8 @@
"authors": [ "authors": [
{ {
"name": "Filipe Dobreira", "name": "Filipe Dobreira",
"role": "Developer", "homepage": "https://github.com/filp",
"homepage": "https://github.com/filp" "role": "Developer"
} }
], ],
"description": "php error handling for cool kids", "description": "php error handling for cool kids",
@@ -4819,18 +4819,18 @@
"authors": [ "authors": [
{ {
"name": "Arne Blankerts", "name": "Arne Blankerts",
"role": "Developer", "email": "arne@blankerts.de",
"email": "arne@blankerts.de" "role": "Developer"
}, },
{ {
"name": "Sebastian Heuer", "name": "Sebastian Heuer",
"role": "Developer", "email": "sebastian@phpeople.de",
"email": "sebastian@phpeople.de" "role": "Developer"
}, },
{ {
"name": "Sebastian Bergmann", "name": "Sebastian Bergmann",
"role": "Developer", "email": "sebastian@phpunit.de",
"email": "sebastian@phpunit.de" "role": "Developer"
} }
], ],
"description": "Library for handling version information and constraints", "description": "Library for handling version information and constraints",
@@ -5101,8 +5101,8 @@
"authors": [ "authors": [
{ {
"name": "Sebastian Bergmann", "name": "Sebastian Bergmann",
"role": "lead", "email": "sebastian@phpunit.de",
"email": "sebastian@phpunit.de" "role": "lead"
} }
], ],
"description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
@@ -5152,8 +5152,8 @@
"authors": [ "authors": [
{ {
"name": "Sebastian Bergmann", "name": "Sebastian Bergmann",
"role": "lead", "email": "sebastian@phpunit.de",
"email": "sebastian@phpunit.de" "role": "lead"
} }
], ],
"description": "FilterIterator implementation that filters files based on a list of suffixes.", "description": "FilterIterator implementation that filters files based on a list of suffixes.",
@@ -5194,8 +5194,8 @@
"authors": [ "authors": [
{ {
"name": "Sebastian Bergmann", "name": "Sebastian Bergmann",
"role": "lead", "email": "sebastian@phpunit.de",
"email": "sebastian@phpunit.de" "role": "lead"
} }
], ],
"description": "Simple template engine.", "description": "Simple template engine.",
@@ -5243,8 +5243,8 @@
"authors": [ "authors": [
{ {
"name": "Sebastian Bergmann", "name": "Sebastian Bergmann",
"role": "lead", "email": "sebastian@phpunit.de",
"email": "sebastian@phpunit.de" "role": "lead"
} }
], ],
"description": "Utility class for timing", "description": "Utility class for timing",
@@ -5305,16 +5305,16 @@
}, },
{ {
"name": "phpunit/phpunit", "name": "phpunit/phpunit",
"version": "7.5.14", "version": "7.5.15",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/phpunit.git", "url": "https://github.com/sebastianbergmann/phpunit.git",
"reference": "2834789aeb9ac182ad69bfdf9ae91856a59945ff" "reference": "d79c053d972856b8b941bb233e39dc521a5093f0"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/2834789aeb9ac182ad69bfdf9ae91856a59945ff", "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/d79c053d972856b8b941bb233e39dc521a5093f0",
"reference": "2834789aeb9ac182ad69bfdf9ae91856a59945ff", "reference": "d79c053d972856b8b941bb233e39dc521a5093f0",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -5374,8 +5374,8 @@
"authors": [ "authors": [
{ {
"name": "Sebastian Bergmann", "name": "Sebastian Bergmann",
"role": "lead", "email": "sebastian@phpunit.de",
"email": "sebastian@phpunit.de" "role": "lead"
} }
], ],
"description": "The PHP Unit Testing framework.", "description": "The PHP Unit Testing framework.",
@@ -5385,7 +5385,7 @@
"testing", "testing",
"xunit" "xunit"
], ],
"time": "2019-07-15T06:24:08+00:00" "time": "2019-08-21T07:05:16+00:00"
}, },
{ {
"name": "sebastian/code-unit-reverse-lookup", "name": "sebastian/code-unit-reverse-lookup",
@@ -5945,8 +5945,8 @@
"authors": [ "authors": [
{ {
"name": "Sebastian Bergmann", "name": "Sebastian Bergmann",
"role": "lead", "email": "sebastian@phpunit.de",
"email": "sebastian@phpunit.de" "role": "lead"
} }
], ],
"description": "Library that helps with managing the version number of Git-hosted PHP projects", "description": "Library that helps with managing the version number of Git-hosted PHP projects",
@@ -5995,16 +5995,16 @@
}, },
{ {
"name": "webmozart/assert", "name": "webmozart/assert",
"version": "1.4.0", "version": "1.5.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/webmozart/assert.git", "url": "https://github.com/webmozart/assert.git",
"reference": "83e253c8e0be5b0257b881e1827274667c5c17a9" "reference": "88e6d84706d09a236046d686bbea96f07b3a34f4"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/webmozart/assert/zipball/83e253c8e0be5b0257b881e1827274667c5c17a9", "url": "https://api.github.com/repos/webmozart/assert/zipball/88e6d84706d09a236046d686bbea96f07b3a34f4",
"reference": "83e253c8e0be5b0257b881e1827274667c5c17a9", "reference": "88e6d84706d09a236046d686bbea96f07b3a34f4",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -6012,8 +6012,7 @@
"symfony/polyfill-ctype": "^1.8" "symfony/polyfill-ctype": "^1.8"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^4.6", "phpunit/phpunit": "^4.8.36 || ^7.5.13"
"sebastian/version": "^1.0.1"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
@@ -6042,7 +6041,7 @@
"check", "check",
"validate" "validate"
], ],
"time": "2018-12-25T11:19:39+00:00" "time": "2019-08-24T08:43:50+00:00"
} }
], ],
"aliases": [], "aliases": [],

View File

@@ -2,83 +2,64 @@
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
</head> </head>
<body> <body>
Du <strong>{{$event->date_begin}}</strong> au <strong>{{$event->date_end}}</strong><br> Du <strong>{{$event->date_begin}}</strong> au <strong>{{$event->date_end}}</strong>
<small>{{$event->location}} </small> <div>
@if ($event->is_mandatory) {{$event->location}}
Obligatoire - @if ($event->is_mandatory)
@else (Activité Obligatoire)
Optionnel - @else
@endif (Activité Optionnel)
@if (is_int($event->type)) @endif
{{$event->type}} </div>
@else <div>
{{\App\ComplementaryActivity::find($event->type)->name}} @if (is_int($event->type))
@endif {{$event->type}}
{!!$event->desc!!} @else
{{\App\ComplementaryActivity::find($event->type)->name}}
@endif
</div>
<div>
{!!$event->desc!!}
</div>
@if (!$event->courses->isEmpty()) @if (!$event->courses->isEmpty())
<h4 class="title text-center">Horaire</h4> <div class="w-100 mt-2">
<table> <h4>Horaire</h4>
<thead> <table style="width:100%" class="table">
<th>Niveau</th>
@for ($p = 1; $p <= \App\Config::getData('admin_periode_nb'); $p++)
<th>
Période {{$p}} <small>{{\App\Config::all()->where('name','admin_periode_begin')->first()->data[$p]}} à {{\App\Config::all()->where('name','admin_periode_end')->first()->data[$p]}} </small>
</th>
@endfor
</thead>
<tbody>
@for ($l = 1; $l <= \App\Config::getData('admin_level_in_schedule_nb'); $l++)
<tr> <tr>
<td class="col-md-2 m-3"> <th>Niveau</th>
Niveau {{$l}}
</td>
@for ($p = 1; $p <= \App\Config::getData('admin_periode_nb'); $p++) @for ($p = 1; $p <= \App\Config::getData('admin_periode_nb'); $p++)
<th>
Période {{$p}} <small>{{\App\Config::all()->where('name','admin_periode_begin')->first()->data[$p]}} à {{\App\Config::all()->where('name','admin_periode_end')->first()->data[$p]}}</small>
</th>
@endfor
</tr>
@for ($l = 1; $l <= \App\Config::getData('admin_level_in_schedule_nb'); $l++)
<tr>
<td> <td>
@foreach ($event->courses as $course) Niveau {{$l}}
@if ($course->periode == $p && $course->level == $l) </td>
{{$course->name}} @for ($p = 1; $p <= \App\Config::getData('admin_periode_nb'); $p++)
<td>
@if(\App\User::find($course->user_id)) @foreach($event->courses as $course)
{{\App\User::find($course->user_id)->fullname()}} @if($course->periode == $p && $course->level == $l)
@else <table class="w-100 mx-5 table-borderless bg-white">
Utilisateur Inconnu <tr>
<td>{{$course->name}}</td>
<td class="text-right">{{$course->user->fullname()}}</td>
</tr>
<tr>
<td>{{$course->ocom}}</td>
<td class="text-right">{{$course->location}}</td>
</tr>
</table>
@endif @endif
{{$course->ocom}} @endforeach
{{$course->location}} </td>
<a>Réservation de materiel</a> @endfor
<table> </tr>
@if (!$course->bookings->isEmpty()) @endfor
<thead class="row"> </table>
<th class="col-sm-8 p-2"> </div>
<strong>Item</strong>
</th>
<th class="col-sm-4 text-right p-2">
<strong>Quantité</strong>
</th>
</thead>
<tbody>
@foreach ($course->bookings as $booking)
<tr>
<td class="col-sm-8 p-2">
<a href="/admin/item/{{$booking->item->id}}">{{$booking->item->name}}</a>
</td>
<td class="col-sm-4 text-right p-2">
{{$booking->amount}}
</td>
</tr>
@endforeach
</tbody>
@else
<p class="text-center">
<strong>Aucune réservation</strong>
</p>
@endif
</table>
@endif
@endforeach
@endfor
@endfor
</table>
@endif @endif
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script> <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>

View File

@@ -13,7 +13,7 @@
<div class="col-md-6"> <div class="col-md-6">
<div class="btn-group"> <div class="btn-group">
<a class="btn btn-primary" href="/admin/schedule/edit/{{$event->id}}" data-toggle="tooltip" data-placement="bottom" title="Modifier"><i class="material-icons">edit</i></a> <a class="btn btn-primary" href="/admin/schedule/edit/{{$event->id}}" data-toggle="tooltip" data-placement="bottom" title="Modifier"><i class="material-icons">edit</i></a>
<button disabled class="btn btn-primary" href="/admin/schedule/pdf/event/{{$event->id}}" target="_blank" data-toggle="tooltip" data-placement="bottom" title="Imprimer"><i class="material-icons">print</i></button> <a class="btn btn-primary" href="/admin/schedule/pdf/event/{{$event->id}}" target="_blank" data-toggle="tooltip" data-placement="bottom" title="Imprimer"><i class="material-icons">print</i></a>
<button class="btn btn-danger" data-toggle="tooltip" data-placement="bottom" title="Supprimer" onclick="deleteEvent({{$event->id}})"><i class="material-icons">close</i></button> <button class="btn btn-danger" data-toggle="tooltip" data-placement="bottom" title="Supprimer" onclick="deleteEvent({{$event->id}})"><i class="material-icons">close</i></button>
</div> </div>
</div> </div>