@foreach ($product_houses as $product_house) @php $data = $product_house->getMetas(); @endphp
Director @php if (isset($data['director']) && $data['director']): print_r($data['director']->implode('name', ', ')); endif; @endphp
Writer @php if (isset($data['writer']) && $data['writer']): print_r($data['writer']->implode('name', ', ')); endif; @endphp
Producer @php if (isset($data['producer']) && $data['producer']): print_r($data['producer']->implode('name', ', ')); endif; @endphp
Co-Producer @php if (isset($data['co_producer']) && $data['co_producer']): print_r($data['co_producer']->implode('name', ', ')); endif; @endphp
Bone Face
Call Sheet
GENERAL CREW CALL

{{-- 6:30 PM --}} {{ Carbon\Carbon::parse($data['shoting_time'])->format('h:m: A') }}

NEAREST HOSPITAL
CREW PARKING
BASECAMP
{{ $data['nearest_hospital'] }}
{{ $data['crew_parking'] }}
{{ $data['basecamp'] }}
{{ Carbon\Carbon::parse($data['shoting_date'])->toFormattedDayDateString() }}
{{ $data['shorting_total_days'] }}
Courtesy Breakfast
{{ Carbon\Carbon::parse($data['courtesy_breakfast'])->format('h:m: A') }}
Shooting Call
{{ Carbon\Carbon::parse($data['shooting_call'])->format('h:m: A') }}
Lunch
{{ Carbon\Carbon::parse($data['lunch'])->format('h:m: A') }}
Script Color
{{ $data['script_color'] }}
Schedule Date
{{ $data['schedule_date'] }}
WEATHER
{{ isset($data['weather']) ? $data['weather'] : '-' }}
{{--
High
85°
Low
66°
High
85°
Low
66°
0
0
0
0
--}}
{{ $data['rules']['one'] }}
{{ $data['rules']['two'] }}
{{ $data['rules']['three'] }}
{{ $data['rules']['four'] }}
SCENES
PAGES
SET & DESCRIPTION
D/N
CAST
NOTES
LOCATIONS
@foreach ($data['production_locations']['items'] as $item)
{{ $item['scenes'] }}
{{ $item['pages'] }}
{{ $item['set_and_description'] }}
{{ $item['d_n'] }}
@if (isset($item['cast']) && $item['cast']) {{ collect(json_decode($item['cast']))->implode('name', ', ') }} @endif
{{ $item['notes'] }}
{{ isset($item['locations'])?$item['locations']:null }}
@endforeach
ID
CHARACTER
CAST
STATUS
PICKUP
CALL
BLK/REH
SET
LOSE @
SPECIAL INSTRUCTIONS
@foreach ($data['production_locations']['character'] as $item)
ID
{{ $item['character'] }}
{{ collect(json_decode($item['cast']))->implode('name', ', ') }}
{{ $item['status'] }}
{{ Carbon\Carbon::parse($item['pickup'])->format('h:m: A') }}
{{ Carbon\Carbon::parse($item['call'])->format('h:m: A') }}
{{ $item['blk_reh'] }}
{{ $item['set'] }}
{{ $item['lose'] }}
{{ $item['special_instruction'] }}
@endforeach
@php $production_person_groups = collect($data['production_person']['person']) ->groupBy('type') ->chunk(3) ->toArray(); function getMaxSubArrayCount($item) { $maxCount = 0; // Iterate through the array to count sub-arrays for each key foreach ($item as $key => $subArray) { // Count the number of elements (sub-arrays) for the current key $currentCount = count($subArray); // Update the maximum count if the current count is higher if ($currentCount > $maxCount) { $maxCount = $currentCount; } } return $maxCount; } @endphp
@foreach ($production_person_groups as $production_person_group)
@foreach ($production_person_group as $key => $item)
#
TITLE
NAME
CALL
{{ $key }}
@foreach ($item as $k)
{{ $k['hash_no'] }}
{{ $k['title'] }}
{{ collect(json_decode($k['name']))->implode('name', ', ') }}
{{ Carbon\Carbon::parse($k['call'])->format('h:m: A') }}
@endforeach @php $remainingRows = getMaxSubArrayCount($production_person_group) - count($item); @endphp @for ($i = 0; $i < $remainingRows; $i++)
-
-
-
-
@endfor
{{-- @if (count($production_person_group) == 1)
#
TITLE
NAME
CALL
#
TITLE
NAME
CALL
@endif --}} @endforeach {{--
#
TITLE
NAME
CALL
PRODUCTION
#
TITLE
NAME
CALL
#
TITLE
NAME
CALL
#
TITLE
NAME
CALL
PRODUCTION
#
TITLE
NAME
CALL
#
TITLE
NAME
CALL
--}}
@endforeach
Walkie Channels: {{ collect($data['production_walkie_channel']['channel'])->implode(function (array $item, int $key) { return $item['no'] . '-' . $item['channel']; }, ' ') }}
@if (!$loop->last)
@endif @endforeach