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
+21
View File
@@ -0,0 +1,21 @@
@extends('Layouts.master')
@section('content')
<div class="main-container pb-4">
<form method="post" action="{{route(Request::segment(1).'.adjust.action',['loan' => $data->id])}}">
@include('Partials.Form.Input.date_end')
<div class="row">
@csrf
<div class="col-2"></div>
<div class="col-1">
@method('put')
<input type="submit" class="btn btn-success" value="@lang('adjust') @lang('date_end')">
</div>
</div>
</form>
</div>
@endsection
@section('scripting')
@endsection
+8
View File
@@ -0,0 +1,8 @@
@extends('Layouts.master')
@section('content')
@include('Partials.Pages.create_page')
@endsection
@section('scripting')
@endsection
@@ -0,0 +1 @@
<?php
@@ -0,0 +1,20 @@
@include('Partials.Form.Input.user')
<br>
<hr>
<br>
@include('Partials.Form.Input.products')
<br>
<hr>
<br>
@include('Partials.Form.Input.cabels')
<br>
<hr>
<br>
@include('Partials.Form.Input.date_start')
@include('Partials.Form.Input.date_end')
<br>
<hr>
<br>
@include('Partials.Form.Signature.loaner')
@include('Partials.Form.Signature.lender')
@include('Partials.Form.Signature.fake_full')
+54
View File
@@ -0,0 +1,54 @@
@extends('Layouts.master')
@section('content')
<div class="main-container pb-4">
<div class="head-section mb-2">
@include('Partials.Pages.Search.search_bar')
</div>
<table class="table table-striped">
<thead>
<th>@lang('user')</th>
<th>@lang('items')</th>
<th>@lang('date_start')</th>
<th>@lang('date_end')</th>
<th>@lang('action')</th>
</thead>
<tbody>
@foreach($data as $loan)
<tr>
<td class="col-2 align-middle">
<a href="{{route('users.show',['user' => $loan->user_id])}}" class="btn btn-success">
{{$loan->user->username}}
</a>
</td>
<td class="col-2 align-middle">
@include('Partials.Pages.loan_items')
</td>
<td class="col align-middle">
{{date('d.m.Y',strtotime($loan->date_start))}}
</td>
<td class="col align-middle">
@if(!empty($loan->date_end))
{{date('d.m.Y',strtotime($loan->date_end))}}
@else
@lang('permanent')
@endif
</td>
<td>
@can('loans_adjust')
<a href="{{route('loans.adjust.page',['loan' => $loan->id])}}" class="btn btn-outline-success">
@lang('adjust') @lang('date_end')
</a>
@endcan
</td>
</tr>
@endforeach
</tbody>
</table>
@include('Partials.Pages.display')
</div>
@endsection
@section('scripting')
@endsection
@@ -0,0 +1,13 @@
@extends('Layouts.master')
@section('content')
<div class="main-container pb-4">
<form method="post" action="{{route('loans.laptop.store')}}">
@include('loans.laptop.form_input')
@include('Partials.Form.Input.Submit.submit_create')
</form>
</div>
@endsection
@section('scripting')
@endsection
@@ -0,0 +1,24 @@
@include('Partials.Form.Input.user')
@include('Partials.Form.Input.street')
@include('Partials.Form.Input.city')
<br>
<hr>
<br>
@include('Partials.Form.Input.phone')
@include('Partials.Form.Input.email')
<br>
<hr>
<br>
@include('Partials.Form.Input.laptop')
@include('Partials.Form.Input.laptop_extras')
<br>
<hr>
<br>
@include('Partials.Form.Input.date_start')
@include('Partials.Form.Input.date_end')
<br>
<hr>
<br>
@include('Partials.Form.Signature.loaner')
@include('Partials.Form.Signature.lender')
@include('Partials.Form.Signature.fake_full')
+30
View File
@@ -0,0 +1,30 @@
@extends('Layouts.master')
@section('content')
<div class="main-container pb-4">
<form method="post" action="{{route(Request::segment(1).'.return.action')}}">
@include('Partials.Form.Input.user')
<br>
<hr>
<br>
@include('Partials.Form.Input.products_return')
<br>
<hr>
<br>
@include('Partials.Form.Input.cabels_return')
<br>
<br>
<div class="row">
@csrf
<div class="col-2"></div>
<div class="col-1">
<input type="submit" class="btn btn-success" value="@lang('return')">
</div>
</div>
</form>
</div>
@endsection
@section('scripting')
@endsection