@extends('layouts.app') @section('content') @if (Auth::user()->role_id >= 5)
@include('sidebar')
@else
@endif

Postulaciones

{!! Form::open(['method'=>'GET','url'=>'postulation','class'=>'navbar-form navbar-left','role'=>'search']) !!}
{!! Form::close() !!}
@php $markers=array(); foreach ($postulations as $postulation) { $markers[] = [ 'title' => $postulation->id, 'lat' => $postulation->location->getLat(), 'lng' => $postulation->location->getLng(), 'popup' => '

' . $postulation->id . '

' . $postulation->address . '
' . ucfirst($postulation->categories->name ?? null) . '
' . $postulation->appointment . '
' . $postulation->amount . '

', ]; } $markers_json = str_replace(":", " => " ,str_replace("}", "]", str_replace("{", "[", json_encode($markers)))); @endphp @map([ 'lat' => 20.659698, 'lng' => -103.349609, 'zoom' => 12, $markers_json ])
    {{ $postulations->links() }}
@endsection