Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip add charge type icons to dashboard. #12

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions app/Livewire/Location/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ public function render()
});

$query->withCount([
'chargers as available_css_count' => function ($query) {
$query->available();
},
'chargers as available_type2_count' => function ($query) {
$query->available();
},
'chargers as available_chademo_count' => function ($query) {
$query->available();
},
'chargers as available_chargers_count' => function ($query) {
$query->available();
},
Expand Down
61 changes: 61 additions & 0 deletions resources/views/components/icons/chargers/ccs.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
@props(['size' => 12])
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg class="h-{{$size}} w-{{$size}}" xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" version="1.1" id="svg2"
viewBox="0 0 744.09448819 1052.3622047" {{-- height="297mm" width="210mm" --}} inkscape:version="0.91 r13725"
sodipodi:docname="combo-ccs-eu.svg" inkscape:export-filename="/Users/sss/Desktop/Plug/combo-ccs-eu.png"
inkscape:export-xdpi="600" inkscape:export-ydpi="600">
<sodipodi:namedview pagecolor="#ffffff" bordercolor="#666666" borderopacity="1" objecttolerance="10"
gridtolerance="10" guidetolerance="10" inkscape:pageopacity="0" inkscape:pageshadow="2"
inkscape:window-width="1024" inkscape:window-height="879" id="namedview18" showgrid="true"
inkscape:zoom="0.63429568" inkscape:cx="322.42789" inkscape:cy="421.68515" inkscape:window-x="545"
inkscape:window-y="71" inkscape:window-maximized="0" inkscape:current-layer="layer1">
<inkscape:grid type="xygrid" id="grid4146" />
</sodipodi:namedview>
<defs id="defs4" />
<metadata id="metadata7">
<rdf:RDF>
<cc:Work rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<g id="layer1">
<ellipse ry="32.689156" rx="33.477383" cy="446.20895" cx="425.64734" id="ellipse4206"
style="fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:23;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<ellipse
style="fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:23;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="ellipse4208" cx="318.4473" cy="446.20895" rx="33.477383" ry="32.689156" />
<ellipse ry="32.689156" rx="33.477383" cy="357.92654" cx="268.00021" id="ellipse4210"
style="fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:23;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<ellipse
style="fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:23;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="ellipse4212" cx="372.04733" cy="357.92654" rx="33.477383" ry="32.689156" />
<ellipse ry="32.689156" rx="33.477383" cy="357.92654" cx="474.51797" id="ellipse4214"
style="fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:23;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<ellipse
style="fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:23;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="ellipse4216" cx="424.85913" cy="286.19711" rx="24.440186" ry="25.228432" />
<ellipse ry="25.228432" rx="24.440186" cy="286.19711" cx="322.38849" id="ellipse4218"
style="fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:23;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<path id="path4231"
d="m 266.42366,212.10296 214.40011,0 c 0,0 22.48143,15.20157 31.95271,25.64682 9.47129,10.44526 18.49346,24.48925 24.80002,35.83524 6.30656,11.34599 11.41582,21.50855 15.76495,34.6827 4.34913,13.17415 8.33496,26.90043 9.45883,44.14119 1.12387,17.24076 -0.50993,40.83133 -4.72941,58.32944 -4.21948,17.4981 -12.05744,33.4219 -18.91765,45.71768 -6.86021,12.29577 -11.88517,18.52633 -20.49414,28.37648 -8.60897,9.85015 -19.92154,20.95923 -31.52943,29.95295 -11.60789,8.99371 -23.82267,17.22465 -37.8353,23.64707 -14.01263,6.42242 -45.71768,14.18825 -45.71768,14.18825 0,0 -42.93148,5.75825 -77.2471,-6.30588 -13.63978,-4.79525 -22.57777,-6.42989 -37.83531,-14.18825 -19.11323,-9.71895 -37.52194,-22.04048 -52.02356,-37.83531 -19.93057,-21.70791 -35.90374,-47.88308 -45.71767,-75.67063 -7.77117,-22.00358 -10.31615,-46.04493 -9.45882,-69.36474 0.65128,-17.71506 4.79457,-35.43136 11.03529,-52.02355 5.30073,-14.09303 14.29531,-27.64889 22.07061,-39.41179 7.60607,-11.50687 20.999,-24.12154 29.95295,-31.52942 8.95395,-7.40788 22.0706,-14.18825 22.0706,-14.18825 z"
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:40;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
inkscape:connector-curvature="0" sodipodi:nodetypes="ccscccccccccssssssssc" />
<ellipse ry="53.379299" rx="52.591053" cy="676.37378" cx="285.34134" id="path4151"
style="fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:23;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<ellipse
style="fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:23;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="ellipse4204" cx="457.17682" cy="674.7973" rx="52.591053" ry="53.379299" />
<rect ry="95.939339" y="581.22272" x="176.78996" height="191.87868" width="388.93762" id="rect4235"
style="fill:none;fill-opacity:1;stroke:#000000;stroke-width:30.45082283;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<path id="path4237" d="m 291.64696,560.50306 160.80008,1.57647"
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:23;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
inkscape:connector-curvature="0" />
</g>
</svg>
68 changes: 68 additions & 0 deletions resources/views/components/icons/chargers/chademo.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
@props(['size' => 12])
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg class="h-{{$size}} w-{{$size}}"
viewBox="0 0 744.09448819 1052.3622047" id="svg2" version="1.1" inkscape:version="0.91 r13725"
sodipodi:docname="chademo type4.svg" inkscape:export-filename="/Users/sss/Desktop/Plug/chademo type4.png"
inkscape:export-xdpi="600" inkscape:export-ydpi="600">
<defs id="defs4" />
<sodipodi:namedview id="base" pagecolor="#ffffff" bordercolor="#666666" borderopacity="1.0"
inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:zoom="0.7" inkscape:cx="179.36629"
inkscape:cy="584.26073" inkscape:document-units="px" inkscape:current-layer="layer1" showgrid="true"
inkscape:snap-grids="false" inkscape:snap-to-guides="true" inkscape:window-width="971"
inkscape:window-height="945" inkscape:window-x="77" inkscape:window-y="23" inkscape:window-maximized="0">
<inkscape:grid type="xygrid" id="grid4211" />
</sodipodi:namedview>
<metadata id="metadata7">
<rdf:RDF>
<cc:Work rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<g inkscape:label="Layer 1" inkscape:groupmode="layer" id="layer1">
<ellipse
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:65;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path4213" cx="512.14282" cy="506.64789" rx="69.104935" ry="72.676361" />
<ellipse ry="72.676361" rx="69.104935" cy="506.64789" cx="233.5714" id="ellipse4215"
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:65;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<g style="stroke:#000000;stroke-opacity:1" id="g4234">
<circle r="70" cy="330.93365" cx="371.42859" id="path4221"
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:10;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
</g>
<ellipse
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:7.30948782;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="path4223" cx="319.85715" cy="330.93365" rx="16.378016" ry="17.092304" />
<ellipse ry="17.092304" rx="16.378016" cy="330.93365" cx="421.57144" id="ellipse4225"
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:7.30948782;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<ellipse
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:7.30948782;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="ellipse4227" cx="372.14288" cy="380.36221" rx="16.378016" ry="17.092304" />
<g style="stroke:#000000;stroke-opacity:1" id="g4231" transform="translate(0,4)">
<ellipse
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:7.30948782;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="ellipse4229" cx="372.14288" cy="276.64792" rx="16.378016" ry="17.092304" />
</g>
<g style="stroke:#000000;stroke-opacity:1" id="g4248" transform="translate(2.9325188e-8,350)">
<circle
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:10;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="circle4250" cx="371.42859" cy="330.93365" r="70" />
</g>
<ellipse ry="17.092304" rx="16.378016" cy="680.93365" cx="319.85715" id="ellipse4252"
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:7.30948782;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<ellipse
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:7.30948782;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="ellipse4254" cx="421.57144" cy="680.93365" rx="16.378016" ry="17.092304" />
<ellipse ry="17.092304" rx="16.378016" cy="730.36218" cx="372.14288" id="ellipse4256"
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:7.30948782;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<g style="stroke:#000000;stroke-opacity:1" id="g4258" transform="translate(2.9325188e-8,354)">
<ellipse ry="17.092304" rx="16.378016" cy="276.64792" cx="372.14288" id="ellipse4260"
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:7.30948782;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
</g>
<path
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:18;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
d="m 198.57143,253.79078 c 0,0 52.58614,-29.39643 81.07143,-38.57143 27.98322,-9.01328 57.38863,-15.38044 86.78571,-15.71428 33.62262,-0.38182 67.55701,5.6582 99.64286,15.71428 28.14713,8.82164 79.64286,38.57143 79.64286,38.57143 l 38.57142,-8.57143 54.28572,54.28571 -11.42857,40 c 0,0 31.19161,55.83512 39.28571,86.42857 7.39899,27.96611 9.03609,57.52428 7.85714,86.42857 -1.35916,33.32263 -6.00647,67.13537 -17.14285,98.57143 -9.46744,26.72494 -24.36373,51.64402 -41.42857,74.28571 -16.82126,22.31851 -37.20196,42.11768 -59.14286,59.42858 -18.22165,14.37649 -38.25668,26.77452 -59.42857,36.28572 -21.57261,9.69122 -44.67141,16.05395 -67.85715,20.71429 -18.15873,3.64991 -36.76457,5.40224 -55.28571,5.57142 -18.27518,0.16693 -36.65813,-1.25041 -54.64286,-4.5 -18.52827,-3.3478 -36.85134,-8.42524 -54.35715,-15.35715 -19.70331,-7.80208 -38.75583,-17.59095 -56.42856,-29.28571 C 184.87727,742.39711 161.98922,724.79601 142.85714,703.79077 123.46882,682.5042 106.53896,658.41758 94.285714,632.3622 82.998053,608.36004 76.460387,582.10371 72.142857,555.93362 c -4.306381,-26.10252 -5.928935,-52.93559 -3.571429,-79.2857 2.39342,-26.75152 9.290857,-53.11578 17.857141,-78.57144 7.170886,-21.30908 27.857141,-61.42856 27.857141,-61.42856 l -9.42857,-41.71429 49.42857,-49.71428 z"
id="path4271" inkscape:connector-curvature="0" sodipodi:nodetypes="caaaccccaaaaaaaaaaaaaaaacccc" />
</g>
</svg>
52 changes: 52 additions & 0 deletions resources/views/components/icons/chargers/type2.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
@props(['size' => 12])
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
class="h-{{$size}} w-{{$size}}"
xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" version="1.1" id="svg2"
viewBox="0 0 744.09448819 1052.3622047"inkscape:version="0.91 r13725"
sodipodi:docname="type 2 mennekes.svg" inkscape:export-filename="/Users/sss/Desktop/EV Plugs/type 2 mennekes.png"
inkscape:export-xdpi="600" inkscape:export-ydpi="600">
<sodipodi:namedview pagecolor="#ffffff" bordercolor="#666666" borderopacity="1" objecttolerance="10"
gridtolerance="10" guidetolerance="10" inkscape:pageopacity="0" inkscape:pageshadow="2"
inkscape:window-width="1024" inkscape:window-height="879" id="namedview18" showgrid="true"
inkscape:zoom="0.63429568" inkscape:cx="401.7175" inkscape:cy="484.74722" inkscape:window-x="68"
inkscape:window-y="64" inkscape:window-maximized="0" inkscape:current-layer="layer1">
<inkscape:grid type="xygrid" id="grid4146" />
</sodipodi:namedview>
<defs id="defs4" />
<metadata id="metadata7">
<rdf:RDF>
<cc:Work rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<g id="layer1">
<ellipse ry="32.689156" rx="33.477383" cy="566.02692" cx="422.49423" id="ellipse4206"
style="fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:23;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<ellipse
style="fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:23;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="ellipse4208" cx="315.29419" cy="566.02692" rx="33.477383" ry="32.689156" />
<ellipse ry="32.689156" rx="33.477383" cy="477.74448" cx="264.84711" id="ellipse4210"
style="fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:23;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<ellipse
style="fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:23;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="ellipse4212" cx="368.89423" cy="477.74448" rx="33.477383" ry="32.689156" />
<ellipse ry="32.689156" rx="33.477383" cy="477.74448" cx="471.36487" id="ellipse4214"
style="fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:23;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<ellipse
style="fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:23;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="ellipse4216" cx="421.70602" cy="406.01505" rx="24.440186" ry="25.228432" />
<ellipse ry="25.228432" rx="24.440186" cy="406.01505" cx="319.23538" id="ellipse4218"
style="fill:none;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:23;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<path id="path4231"
d="m 263.27056,331.9209 214.40011,0 c 0,0 22.48143,15.20157 31.95271,25.64682 9.47129,10.44526 18.49346,24.48925 24.80002,35.83524 6.30656,11.34599 11.41582,21.50855 15.76495,34.6827 4.34913,13.17415 8.33496,26.90043 9.45883,44.14119 1.12387,17.24076 -0.50993,40.83133 -4.72941,58.32944 -4.21948,17.4981 -12.05744,33.4219 -18.91765,45.71768 -6.86021,12.29577 -11.88517,18.52633 -20.49414,28.37648 -8.60897,9.85015 -19.92154,20.95923 -31.52943,29.95295 -11.60789,8.99371 -23.82267,17.22465 -37.8353,23.64707 -14.01263,6.42242 -45.71768,14.18825 -45.71768,14.18825 0,0 -42.93148,5.75825 -77.2471,-6.30588 -13.63978,-4.79525 -22.57777,-6.42989 -37.83531,-14.18825 -19.11323,-9.71895 -37.52194,-22.04048 -52.02356,-37.83531 -19.93057,-21.70791 -35.90374,-47.88308 -45.71767,-75.67063 -7.77117,-22.00358 -10.31615,-46.04493 -9.45882,-69.36474 0.65128,-17.71506 4.79457,-35.43136 11.03529,-52.02355 5.30073,-14.09303 14.29531,-27.64889 22.07061,-39.41179 7.60607,-11.50687 20.999,-24.12154 29.95295,-31.52942 8.95395,-7.40788 22.0706,-14.18825 22.0706,-14.18825 z"
style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:40;stroke-linecap:butt;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
inkscape:connector-curvature="0" sodipodi:nodetypes="ccscccccccccssssssssc" />
</g>
</svg>
Loading