Update composer and move themes to under views
This commit is contained in:
@@ -0,0 +1,106 @@
|
||||
@extends('adminlte::layouts.app')
|
||||
|
||||
@section('htmlheader_title')
|
||||
Product List
|
||||
@endsection
|
||||
@section('page_title')
|
||||
Product List
|
||||
@endsection
|
||||
|
||||
@section('contentheader_title')
|
||||
Product List
|
||||
@endsection
|
||||
@section('contentheader_description')
|
||||
@endsection
|
||||
|
||||
@section('main-content')
|
||||
<div class="col-md-12">
|
||||
<table class="table table-sm table-striped" id="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Service</th>
|
||||
<th>Product</th>
|
||||
<th>Monthly</th>
|
||||
<th>Cost</th>
|
||||
<th>Traffic</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach (\App\Models\Service::active()->get() as $o)
|
||||
<tr>
|
||||
<td><a href="{{ url('u/service',[$o->id]) }}">{{ $o->id }}</a></td>
|
||||
<td>{{ $o->sname }}</td>
|
||||
<td>{{ $o->product->name }}</td>
|
||||
<td>{{ number_format($o->billing_monthly_price,2) }}</td>
|
||||
<td>{{ $o->product->type ? number_format($o->product->type->cost,2) : 'NO TYPE' }}</td>
|
||||
<td>{{ $o->product->type ? $o->product->type->allowance_string() : '-' }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('page-scripts')
|
||||
@css('//cdn.datatables.net/1.10.19/css/jquery.dataTables.min.css','datatables-css')
|
||||
@js('//cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js','datatables-js')
|
||||
@css('//cdn.datatables.net/responsive/2.2.1/css/responsive.dataTables.min.css','datatables-responsive-css')
|
||||
@js('//cdn.datatables.net/responsive/2.2.1/js/dataTables.responsive.min.js','datatables-responsive-js')
|
||||
@css('//cdn.datatables.net/rowgroup/1.1.0/css/rowGroup.dataTables.min.css','datatables-rowgroup-css')
|
||||
@js('//cdn.datatables.net/rowgroup/1.1.0/js/dataTables.rowGroup.min.js','datatables-rowgroup-js')
|
||||
@css('//cdn.datatables.net/buttons/1.5.6/css/buttons.dataTables.min.css','datatables-button-css')
|
||||
@js('//cdn.datatables.net/buttons/1.5.6/js/dataTables.buttons.min.js','datatables-button-js')
|
||||
@css('//cdn.datatables.net/fixedheader/3.1.5/css/fixedHeader.dataTables.min.css','datatables-fixed-css')
|
||||
@js('//cdn.datatables.net/fixedheader/3.1.5/js/dataTables.fixedHeader.min.js','datatables-fixed-js')
|
||||
@css('/plugin/dataTables/dataTables.bootstrap4.css','datatables-bootstrap4-css')
|
||||
@js('/plugin/dataTables/dataTables.bootstrap4.js','datatables-bootstrap4-js')
|
||||
@css('/plugin/dataTables/dataTables.bootstrap4.css','datatables-bootstrap4-css')
|
||||
@js('//cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js','jszip')
|
||||
@js('//cdn.datatables.net/buttons/1.5.6/js/buttons.html5.min.js','datatables-buttons-html5')
|
||||
|
||||
<style>
|
||||
tr.odd td:first-child,
|
||||
tr.even td:first-child {
|
||||
padding-left: 3em;
|
||||
}
|
||||
table.dataTable tr.dtrg-group.dtrg-level-1 td {
|
||||
background-color: #e0e0e0;
|
||||
color: #4c110f;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$('#table').DataTable({
|
||||
//oSearch: { sSearch: searchString ? decodeURIComponent(searchString) : '' },
|
||||
aLengthMenu: [
|
||||
[25, 50, 100, 200, -1],
|
||||
[25, 50, 100, 200, "All"]
|
||||
],
|
||||
paging: true,
|
||||
pageLength: 25,
|
||||
lengthChange: true,
|
||||
searching: true,
|
||||
ordering: true,
|
||||
info: true,
|
||||
autoWidth: false,
|
||||
fixedHeader: true,
|
||||
order: [
|
||||
[2,'asc'],
|
||||
[1,'asc'],
|
||||
],
|
||||
rowGroup: {
|
||||
dataSrc: [2],
|
||||
},
|
||||
columnDefs: [
|
||||
{
|
||||
targets: [2],
|
||||
visible: false,
|
||||
},
|
||||
],
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@append
|
71
resources/views/theme/backend/adminlte/a/service.blade.php
Normal file
71
resources/views/theme/backend/adminlte/a/service.blade.php
Normal file
@@ -0,0 +1,71 @@
|
||||
@extends('adminlte::layouts.app')
|
||||
|
||||
@section('htmlheader_title')
|
||||
Service #{{ $o->id }}
|
||||
@endsection
|
||||
|
||||
@section('contentheader_title')
|
||||
Service #
|
||||
@endsection
|
||||
@section('contentheader_description')
|
||||
{{ $o->service_id }}
|
||||
@endsection
|
||||
|
||||
@section('main-content')
|
||||
<div class="col-md-12">
|
||||
<div class="box box-primary">
|
||||
<form role="form" method="POST" enctype="multipart/form-data">
|
||||
{{ csrf_field() }}
|
||||
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">Service Information</h3>
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
<div class="col-md-3">
|
||||
@switch($o->order_status)
|
||||
@case('ORDER-SUBMIT')
|
||||
@include('a.widgets.service.order.submit')
|
||||
@break
|
||||
|
||||
@case('ORDER-HOLD')
|
||||
@case('ORDER-SENT')
|
||||
@case('ORDERED')
|
||||
@include('a.widgets.service.order.sent')
|
||||
@break
|
||||
|
||||
@default
|
||||
@include('u.widgets.service.info')
|
||||
@endswitch
|
||||
</div>
|
||||
|
||||
@if($o->order_status == 'ORDER-REQUEST')
|
||||
<div class="col-md-3">
|
||||
@include('a.widgets.service_order-request')
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="box-footer">
|
||||
@switch($o->order_status)
|
||||
@case('ORDER-SUBMIT')
|
||||
<button type="submit" class="btn btn-info btn-danger" name="action" value="reject">Reject</button>
|
||||
<button type="submit" class="btn btn-info btn-danger" name="action" value="hold">Hold</button>
|
||||
<button type="submit" class="btn btn-info btn-warning" name="action" value="approve">Approve</button>
|
||||
@break;
|
||||
|
||||
@case('ORDER-HOLD')
|
||||
<button type="submit" class="btn btn-info btn-warning" name="action" value="release">Release</button>
|
||||
@case('ORDER-SENT')
|
||||
@case('ORDERED')
|
||||
<button type="submit" class="btn btn-info btn-danger" name="action" value="update_reference">Update</button>
|
||||
@break;
|
||||
|
||||
@endswitch
|
||||
|
||||
{{-- <button type="submit" class="btn btn-info" name="action" value="save">Back</button> --}}
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
@@ -0,0 +1,32 @@
|
||||
<table class="table table-sm">
|
||||
<tr>
|
||||
<th>Supplier</th><td>{{ $o->product->type ? $o->product->type->supplier->name : 'Supplier Unknown' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Supplier Product</th><td>#{{ $o->product_id }}: {{ $o->product->type ? $o->product->type->product->product_id : 'Product Unknown' }}</td>
|
||||
</tr>
|
||||
@if($o->product->type)
|
||||
<tr>
|
||||
<!-- @todo Tax shouldnt be hard coded -->
|
||||
<th>Supplier Setup</th><td>${{ number_format($o->product->type->product->setup_cost*1.1,2) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Supplier Cost</th><td>${{ number_format($o->product->type->cost,2) }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Supplier Contract</th><td>{{ $o->product->type->product->contract_term }} months</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<!-- @todo Tax shouldnt be hard coded -->
|
||||
<th>Supplier Min Cost</th><td>${{ number_format((($x=$o->product->type->product)->setup_cost+$x->base_cost*$x->contract_term)*1.1,2) }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
<tr>
|
||||
<th>Price</th><td>${{ number_format($o->billing_monthly_price,2) }} <small>(${{ number_format($o->billing_monthly_price*12,2) }} Annually)</small></td>
|
||||
</tr>
|
||||
@if($o->product->type AND $o->product->type->cost)
|
||||
<tr>
|
||||
<th>Markup</th><td>{{ number_format(($o->billing_monthly_price/$o->product->type->cost-1)*100,2) }}%</td>
|
||||
</tr>
|
||||
@endif
|
||||
</table>
|
87
resources/views/theme/backend/adminlte/a/setup.blade.php
Normal file
87
resources/views/theme/backend/adminlte/a/setup.blade.php
Normal file
@@ -0,0 +1,87 @@
|
||||
@extends('adminlte::layouts.app')
|
||||
|
||||
@section('htmlheader_title')
|
||||
Setup
|
||||
@endsection
|
||||
|
||||
@section('contentheader_title')
|
||||
{{ $so->site_name }}
|
||||
@endsection
|
||||
@section('contentheader_description')
|
||||
Setup
|
||||
@endsection
|
||||
|
||||
@section('main-content')
|
||||
<div class="col-md-9">
|
||||
<div class="box box-primary">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">Setup Configuration</h3>
|
||||
</div>
|
||||
|
||||
<form role="form" method="POST" enctype="multipart/form-data">
|
||||
{{ csrf_field() }}
|
||||
|
||||
@if(session()->has('success'))
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-md-offset-3">
|
||||
<div class="callout callout-success">
|
||||
<p>{{ session()->get('success') }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if($errors->any())
|
||||
<div class="row">
|
||||
<div class="col-md-6 col-md-offset-3">
|
||||
<div class="callout callout-danger">
|
||||
<p>Some validation errors to look at.</p>
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li>{{ $error }}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="nav-tabs-custom">
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#tab-site" data-toggle="tab">Site Details</a></li>
|
||||
<li><a href="#tab-other" data-toggle="tab">Other</a></li>
|
||||
</ul>
|
||||
|
||||
<div class="box-body">
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane active" id="tab-site">
|
||||
@include('a.widgets.setup_site_details')
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="tab-other">
|
||||
Other Details
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
<button type="submit" class="btn btn-info">Save</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@section('page-scripts')
|
||||
@js('/js/jqBootstrapValidation.js','jq-validation','jquery')
|
||||
<script>
|
||||
$(function () { $("input,select,textarea").not("[type=submit]").jqBootstrapValidation(); } );
|
||||
</script>
|
||||
<style>
|
||||
span.help-block > ul {
|
||||
color: #9d0000;
|
||||
padding-left: 5px;
|
||||
list-style-type: none;
|
||||
}
|
||||
</style>
|
||||
@append
|
@@ -0,0 +1,52 @@
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">New Order Sent to Supplier</h3>
|
||||
<div class="box-tools pull-right">
|
||||
<button type="button" class="btn btn-box-tool" data-widget="collapse" data-toggle="tooltip" title="Collapse">
|
||||
<i class="fa fa-minus"></i></button>
|
||||
<button type="button" class="btn btn-box-tool" data-widget="remove" data-toggle="tooltip" title="Remove">
|
||||
<i class="fa fa-times"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
<table class="table table-condensed" width="100%">
|
||||
<tr>
|
||||
<th>Account</th><td>{{ $o->account->company }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Product</th><td>{{ $o->product->name }}: {{ $o->name }}</td>
|
||||
</tr>
|
||||
@if($o->date_last_invoice)
|
||||
<tr>
|
||||
<th>Last Invoice</th><td>{{ $o->date_last_invoice }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Paid Until</th><td>{{ 'TBA' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Next Invoice</th><td>{{ $o->date_next_invoice }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
<tr>
|
||||
<th>Ordered</th><td>{{ $o->date_orig->format('Y-m-d') }}</td>
|
||||
</tr>
|
||||
@if ($o->date_last)
|
||||
<tr>
|
||||
<th>Update</th><td>{{ $o->date_last->format('Y-m-d') }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
<tr>
|
||||
<th>Order Details</th><td>{!! $o->order_info_details !!}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Reference:</th><td><input type="text" name="notes" class="" value="{{ \Illuminate\Support\Arr::get($o->order_info,'order_reference','') }}"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{{--
|
||||
<div class="box-footer">
|
||||
</div>
|
||||
--}}
|
||||
</div>
|
@@ -0,0 +1,52 @@
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">New Order Submitted</h3>
|
||||
<div class="box-tools pull-right">
|
||||
<button type="button" class="btn btn-box-tool" data-widget="collapse" data-toggle="tooltip" title="Collapse">
|
||||
<i class="fa fa-minus"></i></button>
|
||||
<button type="button" class="btn btn-box-tool" data-widget="remove" data-toggle="tooltip" title="Remove">
|
||||
<i class="fa fa-times"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box-body">
|
||||
<table class="table table-condensed" width="100%">
|
||||
<tr>
|
||||
<th>Account</th><td>{{ $o->account->company }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Product</th><td>{{ $o->product->name }}: {{ $o->name }}</td>
|
||||
</tr>
|
||||
@if($o->date_last_invoice)
|
||||
<tr>
|
||||
<th>Last Invoice</th><td>{{ $o->date_last_invoice }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Paid Until</th><td>{{ 'TBA' }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Next Invoice</th><td>{{ $o->date_next_invoice }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
<tr>
|
||||
<th>Ordered</th><td>{{ $o->date_orig->format('Y-m-d') }}</td>
|
||||
</tr>
|
||||
@if ($o->date_last)
|
||||
<tr>
|
||||
<th>Update</th><td>{{ $o->date_last->format('Y-m-d') }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
<tr>
|
||||
<th>Order Details</th><td>{!! $o->order_info_details !!}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Save/Reject Note:</th><td><input type="text" name="notes" class=""></td>
|
||||
</th>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{{--
|
||||
<div class="box-footer">
|
||||
</div>
|
||||
--}}
|
||||
</div>
|
@@ -0,0 +1,66 @@
|
||||
<div class="form-group col-sm-12 {{ $errors->has('site_name') ? 'has-error' : '' }}">
|
||||
<label for="site_name">Site Name</label>
|
||||
<input type="text" class="form-control" id="site_name" name="site_name" placeholder="Site Name" value="{{ old('site_name',$so->site_name) }}">
|
||||
<span class="help-block">{{ $errors->first('site_name') }}</span>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-sm-9 {{ $errors->has('site_description') ? 'has-error' : '' }}">
|
||||
<label for="site_description">Site Description</label>
|
||||
<textarea class="form-control" id="site_description" name="site_description" placeholder="Site Description" rows="3">{{ old('site_description',$so->site_description) }}</textarea>
|
||||
<span class="help-block">{{ $errors->first('site_description') }}</span>
|
||||
</div>
|
||||
<div class="form-group col-sm-3 {{ $errors->has('site_logo') ? 'has-error' : '' }}">
|
||||
<label for="site_logo">Site Logo</label>
|
||||
<input type="file" class="form-control" id="site_logo" name="site_logo"><img class="col-sm-12" src="{{ asset($so->site_logo) }}">
|
||||
<span class="help-block">{{ $errors->first('site_logo') }}</span>
|
||||
</div>
|
||||
|
||||
<fieldset class="form-group col-sm-12">
|
||||
<label>Site Address</label>
|
||||
|
||||
<div class="form-group col-sm-12 {{ $errors->has('site_address1') ? 'has-error' : '' }}">
|
||||
<label for="site_address">Site Address Lines</label>
|
||||
<input type="text" class="form-control" id="site_address1" name="site_address1" placeholder="Address1" value="{{ old('site_address1',$so->site_address1) }}">
|
||||
<input type="text" class="form-control" id="site_address2" name="site_address2" placeholder="Address2" value="{{ old('site_address2',$so->site_address2) }}">
|
||||
<span class="help-block">{{ $errors->first('site_address1') }} {{ $errors->first('site_address2') }}</span>
|
||||
</div>
|
||||
<div class="form-group col-sm-6 {{ $errors->has('site_city') ? 'has-error' : '' }}">
|
||||
<label for="site_address">Site City</label>
|
||||
<input type="text" class="form-control" id="site_city" name="site_city" placeholder="City" value="{{ old('site_city',$so->site_city) }}">
|
||||
<span class="help-block">{{ $errors->first('site_city') }}</span>
|
||||
</div>
|
||||
<div class="form-group col-sm-3 {{ $errors->has('site_state') ? 'has-error' : '' }}">
|
||||
<label for="site_address">Site State</label>
|
||||
<input type="text" class="form-control col-sm-3" id="site_state" name="site_state" placeholder="State" value="{{ old('site_state',$so->site_state) }}">
|
||||
<span class="help-block">{{ $errors->first('site_state') }}</span>
|
||||
</div>
|
||||
<div class="form-group col-sm-3 {{ $errors->has('site_postcode') ? 'has-error' : '' }}">
|
||||
<label for="site_address">Site Post Code</label>
|
||||
<input type="text" class="form-control col-sm-3" id="site_postcode" name="site_postcode" placeholder="Post Code" value="{{ old('site_postcode',$so->site_postcode) }}">
|
||||
<span class="help-block">{{ $errors->first('site_postcode') }}</span>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<div class="form-group col-sm-6 {{ $errors->has('site_phone') ? 'has-error' : '' }}">
|
||||
<label for="site_phone">Site Phone</label>
|
||||
<input class="form-control" id="site_phone" name="site_phone" placeholder="Site Phone" value="{{ old('site_phone',$so->site_phone) }}">
|
||||
<span class="help-block">{{ $errors->first('site_phone') }}</span>
|
||||
</div>
|
||||
<div class="form-group col-sm-6 {{ $errors->has('site_fax') ? 'has-error' : '' }}">
|
||||
<label for="site_fax">Site Fax</label>
|
||||
<input class="form-control" id="site_fax" name="site_fax" placeholder="Site Fax" value="{{ old('site_fax',$so->site_fax) }}">
|
||||
<span class="help-block">{{ $errors->first('site_fax') }}</span>
|
||||
</div>
|
||||
<div class="control-group form-group col-sm-6 {{ $errors->has('site_email') ? 'has-error' : '' }}">
|
||||
<label for="site_email">Site Email</label>
|
||||
<input type="email" class="form-control" id="site_email" name="site_email" placeholder="Site Email" value="{{ old('site_email',$so->site_email) }}">
|
||||
<span class="help-block">{{ $errors->first('site_email') }}</span>
|
||||
</div>
|
||||
<div class="control-group form-group col-sm-6 {{ $errors->has('site_tax') ? 'has-error' : '' }}">
|
||||
<label for="site_tax">Site Tax Number</label>
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon">ABN</span>
|
||||
<input type="number" class="form-control" id="site_tax" name="site_tax" minlength="10" maxlength="10" placeholder="Site Tax" value="{{ old('site_tax',$so->site_tax) }}">
|
||||
</div>
|
||||
<span class="help-block">{{ $errors->first('site_tax') }}</span>
|
||||
</div>
|
Reference in New Issue
Block a user