osb/resources/views/theme/backend/adminlte/a/service.blade.php

71 lines
2.0 KiB
PHP
Raw Normal View History

2018-08-23 05:17:26 +00:00
@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">
2019-01-24 03:40:33 +00:00
<form role="form" method="POST" enctype="multipart/form-data">
{{ csrf_field() }}
2018-08-23 05:17:26 +00:00
2019-01-24 03:40:33 +00:00
<div class="box-header with-border">
<h3 class="box-title">Service Information</h3>
2018-08-23 05:17:26 +00:00
</div>
2019-01-24 03:40:33 +00:00
<div class="box-body">
2018-08-23 05:17:26 +00:00
<div class="col-md-3">
2019-01-24 03:40:33 +00:00
@switch($o->order_status)
@case('ORDER-SUBMIT')
@include('theme.backend.adminlte.a.widgets.service.order.submit')
2019-01-24 03:40:33 +00:00
@break
2019-01-24 11:03:43 +00:00
@case('ORDER-HOLD')
@case('ORDER-SENT')
2019-01-24 10:55:43 +00:00
@case('ORDERED')
@include('theme.backend.adminlte.a.widgets.service.order.sent')
@break
2019-01-24 03:40:33 +00:00
@default
@include('theme.backend.adminlte.u.widgets.service.info')
2019-01-24 03:40:33 +00:00
@endswitch
2018-08-23 05:17:26 +00:00
</div>
2019-01-24 03:40:33 +00:00
@if($o->order_status == 'ORDER-REQUEST')
<div class="col-md-3">
@include('theme.backend.adminlte.a.widgets.service_order-request')
2019-01-24 03:40:33 +00:00
</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>
2019-01-24 11:03:43 +00:00
<button type="submit" class="btn btn-info btn-danger" name="action" value="hold">Hold</button>
2019-01-24 06:16:51 +00:00
<button type="submit" class="btn btn-info btn-warning" name="action" value="approve">Approve</button>
2019-01-24 03:40:33 +00:00
@break;
2019-01-24 11:03:43 +00:00
@case('ORDER-HOLD')
<button type="submit" class="btn btn-info btn-warning" name="action" value="release">Release</button>
@case('ORDER-SENT')
2019-01-24 10:55:43 +00:00
@case('ORDERED')
<button type="submit" class="btn btn-info btn-danger" name="action" value="update_reference">Update</button>
@break;
2019-01-24 03:40:33 +00:00
@endswitch
{{-- <button type="submit" class="btn btn-info" name="action" value="save">Back</button> --}}
2019-01-24 03:40:33 +00:00
</div>
</form>
2018-08-23 05:17:26 +00:00
</div>
</div>
@endsection