@extends('layouts/default') @section('title0') {{ trans('admin/hardware/general.requested') }} {{ trans('general.assets') }} @stop {{-- Page title --}} @section('title') @yield('title0') @parent @stop {{-- Page content --}} @section('content')
Image | Item Name | {{ trans('admin/hardware/table.location') }} | {{ trans('admin/hardware/form.expected_checkin') }} | {{ trans('admin/hardware/table.requesting_user') }} | {{ trans('admin/hardware/table.requested_date') }} | {{ trans('button.actions') }} | ||
---|---|---|---|---|---|---|---|---|
@if (($request->itemType() == "asset") && ($request->requestable)) @elseif (($request->itemType() == "asset_model") && ($request->requestable)) @endif | @if ($request->itemType() == "asset") {{ $request->name() }} @elseif ($request->itemType() == "asset_model") {{ $request->name() }} @endif | @if ($request->location()){{ $request->location()->name }} | @else@endif | @if ($request->itemType() == "asset") {{ App\Helpers\Helper::getFormattedDateObject($request->requestable->expected_checkin, 'datetime', false) }} @endif | @if ($request->requestingUser()) {{ $request->requestingUser()->present()->fullName() }} @else (deleted user) @endif | {{ App\Helpers\Helper::getFormattedDateObject($request->created_at, 'datetime', false) }} | {{ Form::open([ 'method' => 'POST', 'route' => ['account/request-item', $request->itemType(), $request->requestable->id, true, $request->requestingUser()->id], ]) }} {{ Form::close() }} | @if ($request->itemType() == "asset") @if ($request->requestable->assigned_to=='') {{ trans('general.checkout') }} @else {{ trans('general.checkin') }} @endif @endif |