Initial Commit

This commit is contained in:
dann4624
2022-09-28 09:38:08 +02:00
parent cac476f80f
commit 2d04a269e6
355 changed files with 52166 additions and 25 deletions
+8
View File
@@ -0,0 +1,8 @@
@extends('Layouts.master')
@section('content')
@include('Partials.Pages.create_page')
@endsection
@section('scripting')
@endsection
+60
View File
@@ -0,0 +1,60 @@
@extends('Layouts.master')
@section('content')
<div class="main-container pb-4">
@include('Partials.Pages.index_top')
<table class="table table-striped">
<thead>
<th>@lang('brand')</th>
<th>@lang('name')</th>
<th>@lang('action')</th>
</thead>
<tbody>
@foreach($data as $object)
<tr>
<td class="align-middle">
@can('brands_view')
<a href="{{route('brands.show',['brand' => $object->brand])}}" class="btn btn-success">
{{$object->brand->name}}
</a>
@else
{{$object->brand->name}}
@endcan
</td>
<td class="align-middle">
@can('models_view')
<a href="{{route('models.show',['model' => $object])}}" class="btn btn-success">
{{$object->name}}
</a>
@else
{{$object->name}}
@endcan
</td>
<td>
@can(Request::segment(1).'_edit')
<a href="{{route(Request::segment(1).'.edit',[$data_name => $object])}}"
class="btn btn-outline-success">
@lang('edit')
</a>
@endcan
@can(Request::segment(1).'_restore')
<a href="{{route(Request::segment(1).'.restore',[$data_name => $object])}}"
class="btn btn-outline-success">
@lang('restore')
</a>
@endcan
@can(Request::segment(1).'_delete_force')
@include('Partials.Form.Input.Modal.delete_force')
@endcan
</td>
</tr>
@endforeach
</tbody>
</table>
@include('Partials.Pages.display')
</div>
@endsection
@section('scripting')
@endsection
+8
View File
@@ -0,0 +1,8 @@
@extends('Layouts.master')
@section('content')
@include('Partials.Pages.edit_page')
@endsection
@section('scripting')
@endsection
@@ -0,0 +1,2 @@
@include('Partials.Form.Input.brand')
@include('Partials.Form.Input.name')
+50
View File
@@ -0,0 +1,50 @@
@extends('Layouts.master')
@section('content')
<div class="main-container pb-4">
@include('Partials.Pages.index_top')
<table class="table table-striped">
<thead>
<th>@lang('brand')</th>
<th>@lang('name')</th>
<th>@lang('action')</th>
</thead>
<tbody>
@foreach($data as $model)
<tr>
<td class="align-middle">
@can('brands_view')
<a href="{{route('brands.show',['brand' => $model->brand])}}" class="btn btn-success">
{{$model->brand->name}}
</a>
@else
{{$model->brand->name}}
@endcan
</td>
<td class="align-middle">
@can('models_view')
<a href="{{route('models.show',['model' => $model])}}" class="btn btn-success">
{{$model->name}}
</a>
@else
{{$model->name}}
@endcan
</td>
<td>
@can('models_edit')
<a href="{{route('models.edit',['model' => $model])}}" class="btn btn-outline-success">
@lang('edit')
</a>
@endcan
</td>
</tr>
@endforeach
</tbody>
</table>
@include('Partials.Pages.display')
</div>
@endsection
@section('scripting')
@endsection
+51
View File
@@ -0,0 +1,51 @@
@extends('Layouts.master')
@section('content')
<div class="main-container pb-4">
<div class="row">
<div class="col-auto">
<h1>@lang('model') {{$data->name}}</h1>
</div>
@can('models_edit')
<div class="col">
<a href="{{route('models.edit',['model' => $data])}}"
class="btn btn-outline-success ms-4 mt-2">
@lang('edit')
</a>
</div>
@endcan
</div>
<h2>
@lang('brand') :
@can('brands_view')
<a href="{{route('brands.show',['brand' => $data->brand])}}" target="_blank"
class="btn btn-success">
{{$data->brand->name}}
</a>
@endcan
</h2>
<h2>@lang('products')</h2>
@if(count($data->products) >= 1)
<table>
@foreach($data->products as $product)
<tr>
<td>
<a href="{{route('products.show',['product' => $product])}}" class="btn btn-success" target="_blank">
@if(config('app.barcode_mode') == 'dynamic')
{{$product->category->name}}.@if(!empty($product->subcategory->name)){{$product->subcategory->name}}.@endif{{$product->brand->name}}.{{$product->model->name}}@if(!empty($product->name)).{{$product->name}}@endif
@endif
@if(config('app.barcode_mode') == 'static')
{{$tracked->loanable->barcode}}
@endif
</a> </td>
</tr>
@endforeach
</table>
@else
@lang('no_amount') @lang('products')
@endif
</div>
@endsection
@section('scripting')
@endsection