Skip to content

Instantly share code, notes, and snippets.

@edgrosvenor
Last active November 3, 2021 20:32
Show Gist options
  • Save edgrosvenor/60930f4f71fdc87462b7a2bfe87740f2 to your computer and use it in GitHub Desktop.
Save edgrosvenor/60930f4f71fdc87462b7a2bfe87740f2 to your computer and use it in GitHub Desktop.
<?php
namespace App\CampFormats;
use App\Actions\CopyPdfFromResources;
use App\Actions\CreateRosterPdf;
use App\Actions\GetGoogleDocAsPdf;
class BasketballOneDay extends BaseFormat
{
public function buildOrder(): void
{
// Coach Packet
$this->order->push([
'name' => 'Coach Packet',
'filename' => $this->camp->filePrefix . '-coach_packet.pdf',
'files' => [
[GetGoogleDocAsPdf::class, ['doc' => data_get($this->camp->details, 'staff.coach_packet')]],
[CopyPdfFromResources::class, ['doc' => 'coach-eval-basketball.pdf']],
[CreateRosterPdf::class, ['version' => 'vb_coach', 'template' => null]],
[CreateRosterPdf::class, ['version' => 'vb_team', 'template' => null]],
[CreateRosterPdf::class, ['version' => 'vb_position', 'template' => null]],
// TODO: Add player assessment card from Google Docs when ready
],
'quantity' => data_get($this->camp, 'numCoaches', 0) + 2,
'options' => [
/*
* TODO: Julián to populate this array to be converted to JSON and posted to API
Size: 8.5x11 (default)
Paper: Laser 32 lb (default)
Color: Black & White
Sides: Double Sided
Orientation: Portrait
Binding: Staple, top left
*/
],
]);
// Check In Sheet
$this->order->push([
'name' => 'Checkin Sheet',
'filename' => $this->camp->filePrefix . '-checkin.pdf',
'files' => [
[CreateRosterPdf::class, ['version' => 'vb_checkin', 'template' => null]],
],
'quantity' => 3,
'options' => [
/*
* TODO: Julián to populate this array to be converted to JSON and posted to API
Size: 8.5x11 (default)
Paper: Canary, 24 lb
Color: Black & White
Sides: Single Sided (default)
Orientation: Portrait (default)
Binding: None (default)
*/
],
]);
// Director Packet
$this->order->push([
'name' => 'Director Packet',
'filename' => $this->camp->filePrefix . '-director-packet.pdf',
'files' => [
[GetGoogleDocAsPdf::class, ['doc' => data_get($this->camp->details, 'staff.coach_packet')]],
[CreateRosterPdf::class, ['version' => 'vb_coach', 'template' => null]],
[CreateRosterPdf::class, ['version' => 'vb_team', 'template' => null]],
[CreateRosterPdf::class, ['version' => 'vb_position', 'template' => null]],
[CreateRosterPdf::class, ['version' => 'director_roster', 'template' => null]],
// TODO: Add player assessment card from Google Docs when ready
],
'quantity' => 2,
'options' => [
/*
* TODO: Julián to populate this array to be converted to JSON and posted to API
Size: 8.5x11 (default)
Paper: Blue, 24 lb
Color: Black & White
Sides: Double Sided
Orientation: Portrait
Binding: Staple, top left
*/
],
]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment