@php //Determine form/input display $show_form = 0; $hire = 0; $buy = 0; $location_ids = []; //Get necessary details from Product or Product Category if(isset($post) && isset($post->post)){ $prod = $post->post; $taxes = $post->taxonomies; foreach($taxes as $tax){ if( isset($tax->category) && isset($tax->category->json_locations) ){ $location_ids = array_unique(array_merge($location_ids, json_decode($tax->category->json_locations))); } } } elseif (isset($tax) && isset($tax->category) && isset($tax->category->json_locations)) { $prod = $tax->category; $location_ids = json_decode($tax->category->json_locations); } @endphp @if($show_form)
@if ( ($errors->any()) && (old('form_type') == 'product') )
@endif {{ csrf_field() }} {{-- Branch/Location --}}
@if ($errors->has('email')) @endif
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
@endif