@extends('template.app')
@section('meta') @endsection
@section('title') Mis Report @endsection
@section('styles')
@endsection
@section('content')
| Model |
Rajkot |
Rajkot_1s |
Jamnagar |
Morbi |
Junagdh |
Total |
Allocated |
Free Stock |
PDI Hold |
Total |
@php
$models = [
['Sonet', 60, 60, 60, 60, 60, 300],
['Petrol', 50, 50, 50, 50, 50, 250],
['Diesel', 10, 10, 10, 10, 10, 50],
['Syros', 60, 60, 60, 60, 60, 300],
['Petrol', 50, 50, 50, 50, 50, 250],
['Diesel', 10, 10, 10, 10, 10, 50],
['Seltos', 60, 60, 60, 60, 60, 300],
['Petrol', 50, 50, 50, 50, 50, 250],
['Diesel', 10, 10, 10, 10, 10, 50],
['Carens', 60, 60, 60, 60, 60, 300],
['Petrol', 50, 50, 50, 50, 50, 250],
['Diesel', 10, 10, 10, 10, 10, 50],
['Clavis', 60, 60, 60, 60, 60, 300],
['Petrol', 50, 50, 50, 50, 50, 250],
['Diesel', 10, 10, 10, 10, 10, 50],
['Carnival', 1, 1, 1, 1, 1, 5],
['Diesel', 1, 1, 1, 1, 1, 5],
['Ev6', 1, 1, 0, 1, 1, 4],
['Electric', 1, 2, 0, 1, 0, 4],
];
$alloc = [
300 => [210, 89, 1, 300],
250 => [200, 49, 1, 250],
50 => [10, 40, 0, 50],
5 => [4, 1, 0, 5],
4 => [4, 0, 0, 4],
];
@endphp
@foreach ($models as $row)
@php
$bgColor = $loop->even ? '#f1f1f1' : '#ffffff';
@endphp
@for ($i = 0; $i < 6; $i++)
| {{ $row[$i] ?? '' }} |
@endfor
{{ $row[6] ?? '' }} |
@php
$key = $row[6] ?? 0;
$a = $alloc[$key] ?? ['', '', '', ''];
@endphp
@foreach ($a as $value)
{{ $value }} |
@endforeach
@endforeach
| Model |
Rajkot |
Rajkot_1s |
Jamnagar |
Morbi |
Junagdh |
Total |
Allocated |
Free Stock |
PDI Hold |
Total |
| Total Stock |
302 |
303 |
303 |
301 |
301 |
1509 |
1058 |
446 |
5 |
1509 |
@endsection
@section('scripts')
@endsection